PDA

View Full Version : another RPG question



Reginald
January 16th, 2004, 01:03 PM
right, when the guy i have enters the battle screen and then wins, he goes back to the running around screen

how do i get it so his postion in the running around screen is the same as before he entered a battle?

thanks

SeiferTim
January 16th, 2004, 03:44 PM
That's easy. At the point when you are switching from Map mode to Battle Mode, set two variables (like PointX, and PointY) to the current X, Y of the character. When coming back from battle, set your Clip's X, Y to the variables you set earlier. I would make a PreBattle, and PostBattle function to handle these, and other variable changes.
It would probably be a good idea to make a whole other Frame, or use LoadMovie to seperate the battle Mode from the Map mode, but it's up to you.

Reginald
January 16th, 2004, 04:32 PM
i tried that but couldnt get it work, now ive tried again and got it to work, mad.

Cheers btw

SeiferTim
January 16th, 2004, 06:20 PM
Cool. I forgot to mention that you'd probably want them to be Global Variables. If you have a sample of your game, I'd like to take a look at it this weekend. :)

Reginald
January 16th, 2004, 06:22 PM
i havnt done that much so far, when ive done enough, ill post it