Hello everyone.
I'm having an error programming the character's movement.
I LITERALLY CANNOT MAKE HIM WALK AT ALL.
The movement I want to do is in rpg style.
I spent 30 minutes copying a tutorial code from youtube, this part is literally IDENTICAL.
But here is my code:
#region Horizontal collision
if place_meeting(x+hspd, y,obj_wall) {
while !place_meeting(x+hspd,y,obj_wall){
x += sign(hspd)
}
hspd = 0;
}
x+= hspd;
This is a part of a collision script that is together with the movement script.
but this error won't let me test the game.
If anyone can explain to me what the hell is going on please explain to me.
I'm having an error programming the character's movement.
I LITERALLY CANNOT MAKE HIM WALK AT ALL.
The movement I want to do is in rpg style.
I spent 30 minutes copying a tutorial code from youtube, this part is literally IDENTICAL.
But here is my code:
#region Horizontal collision
if place_meeting(x+hspd, y,obj_wall) {
while !place_meeting(x+hspd,y,obj_wall){
x += sign(hspd)
}
hspd = 0;
}
x+= hspd;
This is a part of a collision script that is together with the movement script.
but this error won't let me test the game.
If anyone can explain to me what the hell is going on please explain to me.