Mario styled jumping?
juzcook
Member Posts: 259
I've been playing around for the last couple days and I've been having trouble creating a jump similar to that in a Mario game. Currently I'm playing around with interpolation with jumping, but that's been giving me some other errors, yet it seems to be the closest to what I'm aiming for.
The problem I'm getting at the moment is that I want my actor to jump with a y value of 200, then fall down quickly (rather than float), so that player's can't scream across the map when they're falling. Another problem also occurs when I use this method, where if my actor has a value greater than 200, he falls DOWN rather than jump up. Any tips or downloads would be really helpful
The problem I'm getting at the moment is that I want my actor to jump with a y value of 200, then fall down quickly (rather than float), so that player's can't scream across the map when they're falling. Another problem also occurs when I use this method, where if my actor has a value greater than 200, he falls DOWN rather than jump up. Any tips or downloads would be really helpful
Comments
Basically he uses an Accelerate upward for a split second.
Set a Timer for something like 0.1 seconds and check Run to Completion
Then add an Accelerate Behavior to the timer for 90 degrees relative to Scene. You can play with the acceleration but the demo is set to 4000. Of course, if Gravity is too strong the actor wont' jump very high OR if it's too low he'll likely fly off the screen.
The point is you'll have to adjust the value to match your scene.
Good luck!
CJM
There is a jump demo on my wall
Noone ever says anything though lol
It is based off the idea of the actor always having acc going down.
If you are building a platformer you will find out really quick scene gravity is a pain.
But using scene gravity just doesn't work unless you are going for little big planet.
In short a moving platform or anything like that would be a nightmare.
Us in the old days of platformers there weren't physics engines so it's more accurate without gravity
I actually already purchased Photic's book too which has helped me several times already!