• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Need help with dnd

L

Luke B

Guest
I am fairly new to gamemaker studio 2 and started my first platformer recently. I just added enemies into the game. I have made them move to the right (walk_spd). However, I need help getting them to move to the left (-walk_spd) when they hit a wall. Can anyone help? Remember, I'm using drag and drop.
 

TsukaYuriko

☄️
Forum Staff
Moderator
What makes them stop? Make sure there's nothing else that's overwriting the code that's supposed to cause the instance to turn around.

What are you using to control movement, hsp or walk_spd? Set whichever one finally causes your instance to move.
 
L

Luke B

Guest
What makes them stop? Make sure there's nothing else that's overwriting the code that's supposed to cause the instance to turn around.

What are you using to control movement, hsp or walk_spd? Set whichever one finally causes your instance to move.
I've tried walk_spd and hsp. Neither work. Not quite sure what to do now.
 

TsukaYuriko

☄️
Forum Staff
Moderator
Where are you applying movement to the instance? Which variable controls how quickly your instance moves?
 
Top