Why doesn't my GameMaker step event work?
Posted
by
exceltior
on Game Development
See other posts from Game Development
or by exceltior
Published on 2013-11-01T17:10:59Z
Indexed on
2013/11/01
22:13 UTC
Read the original article
Hit count: 361
game-maker
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?
© Game Development or respective owner