Rpg Character database

Get help using Construct 2

Post » Tue Nov 05, 2013 1:35 am

RPGs have several playable characters, think Final Fantasy and it's in game menu. You usually have 3-4 playable characters at a time and you can change slots which would change the characters position in battle from slot 1 to slot 3 or whatever character you swapped with.

Usually I would do this with an array and try to use 4 variables for the player slots for the menu and the in game battle system.

However it does not seem to be working, anyone have an idea of doing this in construct? I tried porting over my RPG system from Game Maker... not moving along nicely.
Working on a Action RPG
B
8
S
4
G
4
Posts: 18
Reputation: 2,734

Post » Tue Nov 05, 2013 1:59 am

As you already thought, an array is the way to go imo.

You can even so so far as to implement it in your character stats array.

each character has it's own x of the array.
so x = 0 is Cloud, x = 1 is Tifa and so on. An on some y (partyy) they have information like: is in party if it is 1, and is not in party if 0. And on some other y (othery) you could save the menu position.

When populating your menu you can do:
for every X AND system compare array.at(array.curx, partyy) = 1:
display character X at slot array.at(array.curx, partyy)

Other operations like assigning new positions won't be hard either, just a bit of typing of course, as usual with arrays.
mindfaQ2013-11-05 02:00:06
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Tue Nov 05, 2013 2:45 am

Would this be easier to create as a plugin? I prefer programming over events.

Even with events pos x,y,z would still need to hold player x,y,z's variables and this is the part I'm confused about.

Rukiri2013-11-05 02:46:49
Working on a Action RPG
B
8
S
4
G
4
Posts: 18
Reputation: 2,734


Return to How do I....?

Who is online

Users browsing this forum: Ashley, dop2000, jatoblendy, MathNook and 31 guests