i want to make a thwomp type enemy in my game i’m thinking of using ray-cast to see if the player is underneath, but how should i go from there
Make the raycast go into a switch that turns itself off. This switch should then start a velocity of 4 or higher on the Y. When the thwomp collides with the ground, it will then move the thwomp up with velocity on Y and start a timer. This timer finally turns on the switch again and makes the Y velocity 0. MAKE SURE THE SWITCH IS ON WHEN YOU START!