I am looking for a way to loop/repeat a jumping command. I’ve been messing around with this and I saw some repeat options in the transitionto commands, but I don’t know how to apply something like that to this.
I am also aware that I’ll need to sense when I hit ground so I don’t go double jumping all the time
I’ll get to that, I just want to know how to repeat something like jumping. If you want to add the ground sensing stuff, please go ahead!
So I have this code, I start the game from my main.lua and the player jumps once. That’s cool, but now I want it to repeat jump (something along the lines of doodlejump, but totally different game, just the jumping mechanic I am after here).
Here is the code for applying linearimpulse which works right now.
player:applyLinearImpulse(0, -7, player.x, player.y)
[import]uid: 61600 topic_id: 11880 reply_id: 311880[/import]