it works!You use (sprite_index) to change sprites in game.
you can do like this
if(x = xprevious){
sprite_index = spr_idle
}
if(x != xprevious){
sprite_index = spr_walk
}
make sure both sprites have the same origin pointit works!
the only problem is that it has a bug
it keeps teleporting when i walk another way, making the sprite get stuck in the walls or in the enemys, when it touches the enemy it gets crazy etc
ok it works nowmake sure both sprites have the same origin point