Hello there, I am making a side scrolling game which gradually throughout the level I have made thus far, the terrain ascends. In the level I have enemies that follow you, the only problem being that I can’t make them jump. I’m sure that I’ve missed something, but I couldn’t find anything online. Sorry if this has been done before.
1 Like
Welcome to the forums! I bet you could use that “<tile to [right] of (mySprite) is [tile]>” block to do it. I would probably use it with a “not < >” block and check for empty tiles, so that you don’t have to do it for every block they could encounter. Then you could give them all gravity, and if the blocks to their right or left are ever not the empty tile, then you make them jump by setting their y velocity. Running that all in a “for (value) in (array of all sprites of kind [enemy])” so it loops through every enemy, and putting that into a forever block should work.