Not everyone around here has the luxury of having nothing to do all day. People have jobs, schools, colleges and universities to go to. If somone doesn't reply in 9 minutes, then just wait longer.
*cough*... anyway. your question.
Limit your player's movements by checking where they are on the playing field. Let's suppose you have a player's x position in a variable called
posx#.
if rightkey() = 1 AND posx# < 300 then inc posx#,10
the player's x position will only be increased if the right cursor key is pressed
and their position is within your boundry.
Enjoy...
Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.