[Feature Request] Object Variables Improvements

0 favourites
  • 2 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • <font size="4">Variable Grouping</font>

    So, right now, variables in construct 2's objects are a bit all over the place. We can create an unlimited number of variables, but i'd really like to be able to group them.

    This would only appear in the IDE, and would have no impact on the gameplay, but I'd be able to divide it in different sections, to illustrate, suppose I'm making a MMORPG:

    object player:

         {identifiers}

         playerID

         serverID

         inventoryID

         weaponID

         {attributes}

         gender

         strength

         intelligence

         agility

         {status}

         maxHP

         maxMana

         armor

         attackDmg

         {internal}

         _currentHP

         _currentMana

         _attackSpeed

         _serverCoordX

         _serverCoordX

         _lastMessageSN

         _idleTimer

         _lastHeartbeat

    An object with many variables can be organized in sections, if you can collapse a given section, you can remain focused only on the specific part you're working with, avoiding clutter. Again, this would only appear in the editor, and would have no effect in the final game.

    <font size="4">Storing Objects</font>

    Another thing I would like to see is a variable type for objects. I really want to store an object for later use, such as with a missile that can track a given target, or a HP bar that knows what it's linked to - this should be able to reduce (if not completely eliminate) the hassle with UID/IIDs, as well as many other problems reported here in the forums.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Global and instance variables grouping would be very useful.

    this is what currently takes up an entire screen on my current project

    https://dl.dropbox.com/u/53374990/Forum/GlobalVars.png

    For storing objects though.. it seems what you described you can already do that with UID's

    for example:

    For each character

    create HPbar

    set instance variable character.HPBarUID to HPBar.UID

    And then when you need to pick that HPBar you just need "pick by UID character.HPBarUID"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)