Trampoline Code
Create a new Event Sheet for the Trampoline
Create a new Event Sheet for the Trampoline
Create a group for the Bounce code.
Create a group for the Bounce code.
Code Explanation
Code Explanation
When the Player collides with the Trampoline
When the Player collides with the Trampoline
AND the Player is above the Trampoline
AND the Player is above the Trampoline
Send the Player upwards by 900 pixels by changing the Y vector
Send the Player upwards by 900 pixels by changing the Y vector
Play the Jump animation of the Trampoline
Play the Jump animation of the Trampoline
Create a group for the Reset to Idle code.
Create a group for the Reset to Idle code.
Code Explanation
Code Explanation
When the Trampolines' Jump animation has finished playing.
When the Trampolines' Jump animation has finished playing.
Set the current animation to Idle for the Trampoline.
Set the current animation to Idle for the Trampoline.