Jump to content

Houp

YLANDS TEAM
  • Content Count

    381
  • Joined

  • Last visited

Posts posted by Houp


  1. ok, please write when you encounter a problem. We are not aware of any problems with local variables and we use them in our games.

    There are 4 types of variables:

    Local variables, Member variables, Member variables of global storages, Member variables of entity storages

    Local variables

    They exist only temporarily. You can use their set/get methods only in a scope where they are defined after their definition. The new ones are created each time same piece of code is executed. (local variable are also Item in For each tile or all Event's arguments)

    Member variables

    They are bound to specific entity or game logic. They are "global" for whole entity or game logic. You define them for an object and then you can use them in whole entity/game logic script. (in any number of events) Their value persist through several calls of the same event/instruction. They are saved to a save file.

    Member variables of global storages

    For them applies same things as for a Member variables. The only difference is that you are able to get/set their values from any entity/game logic script

    Member variables of entity storages

    Variables defined in entity storages does not allocate any data until the entity storage is assigned to a specific entity. After that that entity have all variables defined in entity storage and you can access them from any entity/game logic script.

     

    .. hopefully this helps a little.

×