Page 1 of 1

What do I need to make this work?

PostPosted: Thu May 17, 2012 4:15 am
by Hblade
What is the best way of setting up an RPG like system? How would I transition from walking to battle the best way possible?

Re: What do I need to make this work?

PostPosted: Thu May 17, 2012 4:19 am
by skydereign
You can't really say there is a best way, since there are so many different ways all having benefits and disadvantages (which all depend on your game and setup). From the tools gE provides, I think the most gE way is to use an activation region. Essentially move the view into the battle activation region after setting some global variables. Have in some actor's create actor event the code that actually creates the battle according to the variable set. From there all the actors within the region should act only for the battle. When it finishes, jump the view back to wherever the player was when you stopped. To do this you may need to store the player's position via global variables, but if you set up the rpg world to act with activation regions properly, none of that will be a large concern.

Re: What do I need to make this work?

PostPosted: Thu May 17, 2012 4:49 am
by Hblade
Alright, thanks :)

Re: What do I need to make this work?

PostPosted: Thu May 17, 2012 4:57 pm
by RippeR7420
I've thought about this a bunch myself. And the best conclusion I came up with, is to have your battle system set up in its own .ged file. Then in your main game have it save the vars, and load the battle.ged. Then vice versa. I think it would be fun to make a example.ged. :)

Re: What do I need to make this work?

PostPosted: Fri May 18, 2012 2:44 pm
by AliceXIII
I've done it where i have the tiles in my map decide if there's a random battle on the collision with the player.

that way all i have to do is have my players previous x and y saved temporarily, move him to his new x,y place enemies in there x and y placements then change the tiles animation by loading my battle map which is stored in the same binary format as any map in my game..

in my opinion easiest and least of a hassle cause everything can be done in one .ged and you only need to pass a couple variables, also the activation regions only cover wide spectrum areas to where as checking collision's with the player and tiles you can specify only certain tiles as enabling battles and others to not create battles i also only enable collisions on the specific tile i deal with collisions on so that way you pass minimal collision events :P

just my thoughts :P

Re: What do I need to make this work?

PostPosted: Mon May 21, 2012 12:04 pm
by Hblade
The random battles part may or may not be easy. You could have it add a variable by a random ammount when the animpos is equal to the stepping animations but not others. You'd have to make sure though that you can't walk against a wall and then trigger a battle. You'd also have to find a way to make sure it doesn't loop when the animpos is right.

Re: What do I need to make this work?

PostPosted: Fri May 25, 2012 2:53 pm
by AliceXIII
random battles are easy i have a turned based battle system like chrono trigger has if you want to check it out?

better yet the entire system i mentioned is in my Arcane Engine which i need you to check out considering your RPG Engine is the only reason the Arcane Engine exists :P

i'll drop you a pm with the download it's still in alpha stage so don't judge it to bad most of the programming thus far was for a basic battle system, creating custom maps, and a couple basic menus :P

Re: What do I need to make this work?

PostPosted: Sat May 26, 2012 3:48 pm
by Hblade
its awesome! :D

Re: What do I need to make this work?

PostPosted: Sat May 26, 2012 9:20 pm
by AliceXIII
thank you i've worked hard on it thus far and still plan to log more hours in this endeavour :P

Re: What do I need to make this work?

PostPosted: Sun May 27, 2012 12:24 am
by Hblade
Its going to turn out a sucess I know it ^^

Re: What do I need to make this work?

PostPosted: Fri Jun 01, 2012 2:10 pm
by AliceXIII
Thanks :P

Re: What do I need to make this work?

PostPosted: Fri Jun 01, 2012 3:13 pm
by Hblade
np :D