Why doesn't my GameMaker step event work?
- by exceltior
So I want to make some kind of floor that which the player when walks in gets his movement reduced but im having thousand of different issues implementing this since it doesnt appear to do anything ...
So i have tried different way:
1 - I have tried Step Event which had the following script:
if keyboard_check(ord('A'))
{
player.x = -5;
}
if keyboard_check(ord('D'))
{
player.x = -5;
}
if keyboard_check(ord('W'))
{
player.x = -5;
}
if keyboard_check(ord('S'))
{
player.x = -5;
}
2 - I have tried a Collision Event with the same code
3- I have tried a Step event with collision detection on a script
None of these options seem to work at all ... Can you help me?