Gigicom
Member
Hello I now tried several tutorials for a code that works better than the solid option for collision.
But the character always collides with the wall a few pixels away.
Here is my movement-code:
as player name I use "obj_player" and as wall name I use a parent object "par_wall".
Thank you in advance
But the character always collides with the wall a few pixels away.
Here is my movement-code:
Code:
if keyboard_check_direct(ord("W")){
y -= walk_speed;
}
if keyboard_check_direct(ord("A")){
x -=walk_speed;
}
if keyboard_check_direct(ord("S")){
y += walk_speed;
}
if keyboard_check_direct(ord("D")){
x += walk_speed;
}
Thank you in advance