B
Ben26
Guest
i was editing my levels or room just moving objects and tiles
and when i tried to play the level i got this message
and it's weird because i don't remember messing with the player code so i really don't know where to look for a solution
and when i tried to play the level i got this message
and it's weird because i don't remember messing with the player code so i really don't know where to look for a solution
Code:
Step Event
if (place_meeting(x+hsp,y,obj_wall))
{
while(!place_meeting(x+sign(hsp),y,obj_wall))
{
x += sign(hsp);
}
hsp = 0;
}
x += hsp;