Good code X_MEN, but for a bigginer that is some what confusing.
sk8rBoy, an alternative to all of this is to simply use the move object commands. Like this!....
if upkey()=1 move object 1, 1
if downkey()=1 move object 1,-1
if rightkey()=1 move object right 1,1
if leftkey()=1 move object left 1,1
This tells the program to move ovject 1, 1 unit.
the second set of commands are used to tell the object to turn left or right. Those commands make movement really easy.
Now in order to allow the object to move over hills or traverse dips, you will need to use the get ground hight command.
Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.