I am currently making a game using the pla movement object and i wanted to make a trampoline object in which the player, once touched, bouces up.
is there a easy way to do it??? im new to does math over complicated stuff.
I am currently making a game using the pla movement object and i wanted to make a trampoline object in which the player, once touched, bouces up.
is there a easy way to do it??? im new to does math over complicated stuff.
you could do it, when you land from a jump and are on top of the object - just force another jump; and make the power higher.
hello,post you mfa (or a light version of it) and explain exactly what you want and i will do it for you
You could link a counter and the counter increase the power ever time the player lands on the trampoline. Then if the player touches the ground. Reset the counter or reset it every so many touches on the trampoline.
RRANDOM could be used if you want a random power increase as well.
This can be done easily with the Platform Movement Object in several ways. The easiest is to just re-purpose the objects "jump" action to trigger whenever your player object falls onto your designated trampoline Object. Method 1 in the pic.
PMO_events.jpg
Alternatively instead of using the jump action, upon collision with your trampoline you can reset the Y velocity to match the value of "jump strength", and then immediately multiply the Y velocity by - 1 (Y Velocity * - 1) to get the same effect. Method 2 in the pic.
It must be noted that your trampoline object should be assigned "jump through platform" collisions for this to work, but it's very trivial to do. Literally just copy the events shown in the picture.
giphy.gif
^don't know how to properly upload animated gifs![]()