i want my character to lose heath when they hit the ground from the cloud, what are some ways i can code this?
4 Likes
good question!
the easiest way to do this is to simply check the velocity when you hit the ground.
here’s some sample code:
and here’s the relevant bit:
6 Likes
A little more complicated version of the “(sprite) touching wall (direction)?” block.
What benefits does it have?
that works too! i just didn’t think of it
1 Like
thank you! this helped a lot and i was able to figure it out. This is the project i used it for, its not quite done since its just to prove that i can code the base mechanics to qualify to compete
