K
kmce
Guest
I want to stop the player from moving when they have touched a specific objects.
The code I have for the player to move is
x-=5;
x+=5;
same with the Y
So I have a variable set up called move. it is originally set to 1, once the player touches the object the variable move is set to 0, then in a step event I have
x-=0;
x+=0;
same with Y
But this does not stop the player from moving. Does anyone know another way in which i could set it up, or maybe know whats wrong with the code I have
The code I have for the player to move is
x-=5;
x+=5;
same with the Y
So I have a variable set up called move. it is originally set to 1, once the player touches the object the variable move is set to 0, then in a step event I have
x-=0;
x+=0;
same with Y
But this does not stop the player from moving. Does anyone know another way in which i could set it up, or maybe know whats wrong with the code I have