Jakeman124
Member
I'm a huge noob at this and have been messing around in GMS 2 and decided to try and make a little stomp attack type thing where the player has to jump in the air and hit a button after they are high enough from the ground. But, for the life of me I can't figure out how to make it only check one instance of an object directly below, it keeps counting objects that are out to the right and prevents a stomp from happening. I've tried various methods and so far the only one that I could get to even slightly work right is obj_wall.y-obj_player.y>=128. Once again, I am a noob at this and have very little experience with programming, so any help will go a long way. My last ditch effort would be to pretty much glue an object to the player that is invisible and 128 pixels below that checks for collision, but I'd rather know if there is a simpler way.