moving 1 to another position if keyhit is true?

BlitzMax Forums/BlitzMax Beginners Area/moving 1 to another position if keyhit is true?

Oh come on!

If X = 0, prevent movement to the left.
If Y = 0, prevent movement upwards.
If X = ArraySize - 1, prevent movement to the right.
If Y = ArraySize - 1, prevent movement downwards.

Easy peasy!

Ryan