A simple version. To add code use ...
{code}
My code goes here
{/code}
But change the {} for []
Stevie
[your code]
[before update player coords ]
{code}
My code goes here
{/code}
But change the {} for []
Stevie
global GW = graphicswidth() global GH = graphicsheight()
[your code]
[before update player coords ]
CheckX# = PlayerX + delta_x CheckY# = PlayerY + delay_y if CheckX < 0 or CheckX > GW delta_x = - delta_x if CheckY < 0 or CheckY > GH delta_y = - delta_y