[SOLVED] How do I make my platformer character... fly?

0 favourites
  • 14 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • Making a platformer character is very easy with Construct, however I still didn't find a way to make it fly.

    In the case, my character is an anthropomorphic bat character. She has wings to help her in some parts, where in others they will be necessary.

    The idea is to jump, then press and hold the jump button while falling to make her stop and float in air. While flying, you can hold up or down to make her fly upward or downward.

    Of course she won't be flying forever, there will be a gauge for this.

    So I count with you guys. Could someone help me with my problem. Independent of the answers, I thank you for your attention. ^^

  • I think the approach would be to apply another movement behavior to the character like "Custom Movement".

    When the button is "is Touching" or "on hold" rather than "on objected touched" you can trigger a custom movement and possibly use "accelerate towards position". You'll have to play around with the specifics.

    Hope this helps...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like TheDom says..

    It would be a case of disabling the platform behaviour on button press/hold while falling and enabling another movement-behaviour..

    What behaviour you'd like for this is totally up to you..

    Using bullet behaviour with gravity might be nice, but you could always add a fake gravity to any of the other behaviours..

  • Here you go mate , enjoy!

    Arrows to move and jump

    While you jump, press and keep down W, then use Arrows to fly around, if you release W player comes to normal platformer mode.

    Download did this in 2 minutes while reading your post!

    used this behaviors, Sine,Platformer,Pin,8way,Keyboard

  • Thank you you guys for the answers, and specially for gamecorpstudio for the engine example.

    Well, it really works. I just hope people wouldn't feel anti-professional when you press and hold jump in the first chance and make the character fly when she's falling.

    Also, it's really cool the sinewave movement, it gives a more fluid feeling when you're flying. The only problem is, when you stop flying, if the wave is moving down, it makes the character fall like an anvil.

    But checking again, it's also the thing with the 8-way movement.

    Is there a solution for these minor problems? Once again, I thank you for your help, my friends.

  • Just another thing I forgot to mention, it works good with regular platforms, but not so good with slopes, inclined platforms. Maybe it's because of the 8-way movement.

    EDIT: I was able to prevent the "super weight" problem when the flight is turn off. It was something involving the Y vector of the platform movement. All I did was to set it to 0 once you release the jump button, and voilá! Worked like a charm.

    EDIT 2: Another thing is, sometimes when you stop flying, the character kinda "bounces" to a certain direction.

  • Thanks for sharing

  • Thanks for sharing

    your welcome,sorry didn't read your post, now i see is the same thing what you said, dident read your post before

    most of times, i just read the first topic, and last if its not solved, i post my own version, so i just skip peoples posts )

    Just another thing I forgot to mention, it works good with regular platforms, but not so good with slopes, inclined platforms. Maybe it's because of the 8-way movement.

    EDIT: I was able to prevent the "super weight" problem when the flight is turn off. It was something involving the Y vector of the platform movement. All I did was to set it to 0 once you release the jump button, and voilá! Worked like a charm.

    EDIT 2: Another thing is, sometimes when you stop flying, the character kinda "bounces" to a certain direction.

    Edit 2 yea noticed that, it was a sine behavior i added to the character wanted to try something. but then forgot to remove it

    i think for the slops and falling its all fixed now in the v2 capx.

    here is a fixed capx better then that i cant do, but you could try using physics based movement and flyng i think wold work better Downloadv2

  • Thank you again for all the help.

    I was working in my own version, but I was struggling to fix some bugs. I used the two examples you provided and merged into my project.

    If you guys are interested in see the result, you may download it here: (Unable to attach any file due some weird problem nor post any link due to my low reputation.)

    Arrows move, Z jump. To fly, jump, release the jump and then press and hold the jump button to fly. If you're falling, you can simply hold the jump button.

    This little delay is necessary to not interfere too much with the regular jumps.

    This problem is solved and I shall change the title to show it. Thank you everyone, for all the help and suggestions.

  • no problem, you can upload if you want an arcade demo of your game if you want for people reviews and feedback's

  • no problem, you can upload if you want an arcade demo of your game if you want for people reviews and feedback's

    I would. The case is that my project isn't meant to be a HTML5 game, but a stand-alone game (using Node-Webkit). I'm not sure if they allow this kind of game in Scirra Arcade.

  • you can always export for scirra arcade

    yes arcade has a checkbox if you pay attention on the steps you have to follow, the last one list has a work in progress checkbox if you set that then you'd be ok !

  • you can always export for scirra arcade

    Just a last question, does Scirra allow WIPs in Scirra Arcade? I thought only finished game are allowed there,

  • Please, sorry for the double post, but after some work, I managed to get enough reputation to post links. And now I'm able to show my version of the platform flight engine.

    So, here's the download page: bit.ly/1HXHGwI

    As I mentioned, use Arrows move, Z jump. To fly, jump, release the jump and then press and hold the jump button to fly. If you're falling, you can simply hold the jump button.

    This little delay is necessary to not interfere too much with the regular jumps.

    Once again I thank you guys for all of the support. ^^

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