0 Favourites

Rpg Character database

  • 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.

  • 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.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
245 26,016
Ashodin's avatar
Ashodin
Unread hot topic
0 Favourites
My isometric RPG
99 15,190
TELLES0808's avatar
TELLES0808
Unread hot topic
94 21,756
LaDestitute's avatar
LaDestitute