Character Wont Move Despite Following Tutorial

TheouAegis

Member
Do you have x+=moveX anywhere?
Do you have y+=moveY anywhere?

if !place_meeting(x+moveX, y, obj_collision) moveX=0;

Pretty sure that line is wrong. If there's no collision, don't move? Doesn't look right to me.
 

PlayerOne

Member
Do you have x+=moveX anywhere?
Do you have y+=moveY anywhere?

if !place_meeting(x+moveX, y, obj_collision) moveX=0;

Pretty sure that line is wrong. If there's no collision, don't move? Doesn't look right to me.

I second this. I don't see x=+moveX or y=+moveY in your code at all.

In addition, you declared:
Code:
//Rest Move Variables 
moveX = 0 ; 
moveY = 0;
However, this doesn't reset the move speed it just declares it as zero.

Also, in your collision code:
Code:
if (!place_meeting(x+move_x, y, obj_collision)){
moveX=0;
}
Remove the ! from the place_meeting.
 
Top