Can I make an actor have the ability to jump only when touching the top of another actor?

Hi, I am making a game where actors (rocks in this case) spawn at the top of the screen at random x coordinates and the fall to the bottom of the screen. The player has to jump from rock to rock to get to the top before a rock either falls on his head or the rising lava touches him. There are two problems that I can't find a solution for on the internet:

  1. I need to make it so that the actor can only jump when touching the top of a rock, the actor MUST be touching the top of the rock otherwise the game can be exploited and you can climb the side of a pillar of rocks that is usually too high to jump.

  2. I need to make it so that if a rock lands on a player while the rock is falling the player loads the death screen. I have tried making two actors spawn and one of them at the bottom of the rock and when this actor collides with the player the player dies. This way works but has lots of problems.

Thanks in advance!

Best Answer

Answers

Sign In or Register to comment.