How do I make an enemy move without using left or right collision/Squish a enemy when stomped

I’m wondering how to make an enemy move without using left or right collisions and move when about to fall or hit a wall and squish an enemy when stomped.

Hi Gooser, and welcome.

about moving, one way could be using x and y value, like

if enemy.X() > of enemy.Variable(the variable storing max x value) then move to the other way,
you can use a flag variable like +1 or -1 for the moving direction.
but you have to instance values of enemies and they have limited range of moving.

another way is to make a path, with waypoints to reach.

then… about squishing… so we are talking of supermario…

1 Like

For the squishing I’m trying Super Mario like

U can also check the Examples and starters Of Gdevelop .
Here is the link also
https://editor.gdevelop-app.com/?project=https://resources.gdevelop-app.com/examples/platformer/platformer.json

1 Like

Oh ok, thanks I’ll see

1 Like