PDA

View Full Version : Help with something


phongy
02-05-2006, 11:14 PM
I made a game
http://stickgame.50webs.com/index.htm

But I don't want the stickman to walk right off the screen! What can I do about this? I am using Flash 8 Pro

devilmaycry
02-06-2006, 10:44 PM
you can make an _x test
if((hero._x+hero._width/2)>Stage.width)return;//dont udate the _x value
else{
//udate it here}

phongy
02-07-2006, 02:58 AM
I don't really understand that.