letabarbieri

Jumping and flying

Recommended Posts

Hi everyone, I'm a newbie and I'm having troubles tweaking a game (currently using Phaser format offline on Atom).

1) My player is expected to jump lower and lower as he gets stars along the way, so I'm guessing a kind of deceleration but concerning gravity.

2) He should start flying when he eats a mushroom (gravity here too?).

Before getting the mushroom he jumps with the space bar but then he is supposed to start flying by pressing the up cursor.

Are there any commands/ codes that could help me with that? I bet it has an easy solution but I can't figure it out.

Thank you very much to whoever may respond! xoxo

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.