How to make my character float in the air?

  • I want to use an umbrella...

  • I would suggest using balloons, for they have more floating power.

    But seriously, I guess floating in this case means falling at a slower pace, so all you have to do is reduce the falling speed.

    I don't know what kind of game you are trying to make and what behaviour you are using, so I can't be more specific.

  • yes, i want to reduce the falling speed pressing the button space. <img src="smileys/smiley1.gif" border="0" align="middle" /> can you teach me?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't know what kind of game you are trying to make and what behaviour you are using, so I can't be more specific.

    You'll need to give more information. But I'm assuming you are using the Platform behavior, so just do

    Space is Down -> Player Set Max Fall Speed to 100

    Else -> Player Set Max Fall Speed to 500

    Numbers are guesses, you can change them.

  • really thanks <3 but I still have a doubt. in the air a I can press and hold the space button frequently. I want to press just once each jump

  • Gve the player an instance variable called Floated with the type set to boolean. Then, do these events:

    On Space Pressed and Player Is Not On Floor (do is on floor then press I to invert) and Floated is False

    • > set Floated true
    • > set Max Fall Speed to 100

    On Space Released

    • > set Max Fall Speed 500

    Player Is On Floor and Trigger Once

    • > set Floated False

    I can't guarantee this will work, it's all if the top of my head and I can't test it.

  • Space is pressed

    character is falling

    > toggle boolean

    -- boolean is set

    set maxfallspeed to 100

    set animation "umbrella"

    -- x(invert) boolean is set

    > set maxfallspeed to 500

    > set animation "fall"

    character is on floor

    -> set boolean false

  • can you send a image please? i am really newbie

  • i understood that i need to put a variable boolean in my character.

    but i did not understand

    -- boolean is set

    and

    -- x(invert) boolean is set

    where do i find this? and all this part it's in just one event?

    first event:

    Space is pressed

    character is falling

    toggle boolean

    -- boolean is set

    set maxfallspeed to 100

    set animation "umbrella"

    -- x(invert) boolean is set

    set maxfallspeed to 500

    set animation "fall"

    second event:

    character is on floor

    -> set boolean false

    and what is the meaning of these symbols? -- and > ?

  • -- stands for a subevent

    stands for an action

  • to check if the boolean is set

    add a condition.

    player - is boolean instance variable set

    to check if it isn't set

    invert this condition by right clicking it and selecting invert

  • <img src="https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-prn2/1234814_469927283121159_834774161_n.jpg" border="0" />

    is it correct?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)