The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsI havent begun coding this portion of my game but i was wondering if i could get some opinions, and and code refrences.
My game is broken into scenes. My issue is this: If my character is in a scene (given part of a dungeon), and encounters a monster, is then sent to a random scene (battle monster scene), and defeats the monster, how can i send the character back to the scene he was in when he encountered the monster, and make him have the same posistion?
My ideas are to get the x and y of the char and take them down as variables when the player encounters the monster, as well as take the current scene down as a variable. That way once you defeat the monster, it takes those variables, and uses them to send you back to the scene, and exact posistion on the screen.
What is your take on the matter?
"Why can't you draw something happy? Like a kitten? Everybody loves kittens!"
that seems pretty reasonable. is there a moving background though? if so, how are you going to take care of that?
use variables. Have the variables be set at the moment you encounter the monster. When the battle is over, before going back to the main stage make the _x and _y axis' of the hero the same as the variables were before engaging combat. It's simple.
You can load the variables in the if hitTest statement when the statement returns true and load them up again when the boss is defeated, as was said before.
Good luck.
Web developer, software engineer, musician, all-around nerd.
Well, if you made everything manually and didn't include any random battles, so you knew where the fights would always take place, you could probably build a remedy for that just using the timeline.
But that would probably make your game kinda dull.
I'm useless when it comes to AS anyway.
BBS Mod, PM me if you have something to report.