A
Amazing creature
Guest
The player is controlled with the mouse, if it collides with a wall it stops like it should, but then I cant move it for some reason, it stays stuck.
obj_mouse:
step
obj_player
step
obj_mouse:
step
Code:
x = mouse_x
y = mouse_y
step
Code:
if x < obj_mouse.x
{
if !place_meeting(x-1,y,obj_solid)
{
x += 10
}
}
if x > obj_mouse.x
{
if !place_meeting(x+1,y,obj_solid)
{
show_debug_message("it works")
x -= 10
}
}