I don't think that will work because you are multiplying a integer by a boolean.Maybe this will work:
var dir_x, dir_y, i; dir_x = (keyboard_check(ord("D"))- keyboard_check(ord("A"))); dir_y = (keyboard_check(ord("S"))- keyboard_check(ord("W"))); for (i = 0; i < 4; i += 1;) { if !(place_meeting(x + i * dir_x, y + i * dir_y, obj_wall)) { x += i * dir_x; y += i * dir_y; } }
In GameMaker it does not make a difference.
Can you explain how that doesn't make a difference?



Find content
Male
