This site requires JavaScript, please enable it in your browser!
Greenfoot back
maxdekruijf
maxdekruijf wrote ...

2017/11/22

Making a double-(or mutli-)jump

maxdekruijf maxdekruijf

2017/11/22

#
For a school project we're making a platformer fighter. We managed to code all the basics such as gravity, single jumps, movement, platform collision etc. But for some reason we are unable to make a double-jump or a multi-jump. Can someone please show / teach us how to SIMPLY code a multi-jump? Thanks in advance! Max de Kruijf
Yogibaer Yogibaer

2017/11/22

#
What´s the meening of "double-jump": two jumps one (multi) after an other, or, one jump with double (multi) length?
Super_Hippo Super_Hippo

2017/11/22

#
Right now, you probably check if the actor is on the ground. Use another condition, count the jumps. So when you jump, you increase it by one and you can jump when it is 0 or 1. When you hit the ground again, you set it back to 0.
maxdekruijf maxdekruijf

2017/11/22

#
Thanks but we got it sort of fixed already. Appreciate the feedback!
You need to login to post a reply.