I created the Spring sprite, i want that when the player jumps on it , it will give the spring effect and make him jump higher, so that he could land on other platforms.
I already created the spring up and down animation but im struggling to create the jump event. Could you guys/gals help me out? im pretty much new to this program.
Thanks in advance.
To make a player with platform behaviour bounce/jump, set it's vector Y to a negative number
Player on collision with Spring -> Player set vector Y to -256
You'd set the Spring to play it's animation in the same event
Here's a C2 capx that you should be able to import into C3:
https://www.dropbox.com/s/56exf6azd9ryl ... .capx?dl=1
It shows the event (without animation), but with the added bonus of increasing the height of the bounce/jump (using an instance variable) each time you land on the spring without hitting the ground.
Develop games in your browser. Powerful, performant & highly capable.
Thanks Mate this work !