if you have difficulty to look at my capx, here's the text:
Global number turn = 0
System every tick : settext to "turn"&turn
keybord- on key return pressed
- system turn = 0: function call "monster" ()
- system else : function call "player"()
function On"monster" : sprite5 regenerate obstacle map
sprite5 find path to mouse.x,mouse.y
sprite5 move along path
system set turn to 1
function On"player" : sprite1 regenerate obstacle map
sprite1 find path to mouse.x,mouse.y
sprite1 move along path
system set turn to 0
so when i start turn=0,
i push enter text change to turn1 ( nothing else),
i push again and text change to turn0 ( nothing else),
then i push again text change to turn1 and sprite5 move to path
push again text change to turn0 and sprite1 move to path
push again text change to turn1 ( nothing else),
i push again and text change to turn0 ( nothing else),
then i push again text change to turn1 and sprite5 move to path
push again text change to turn0 and sprite1 move to path
and so on....
why it need 2 turn to move?