event -
player presses left key
actions -
set bLeft = true
event -
player releases left key
actions -
set bLeft = false
//same with right etc...
event -
periodical every 0.5 seconds
actions -
if bLeft == true then
make playerunit face (facing direction of playerunit + 10.00)
if bRight == true then
make playerunit face (facing direction of playerunit - 10.00)
if bUp == true then
order playerunit to move to position of playerunit offset by 128 towards facing direction of playerunit