Multi-Resolution Game Development With GameBuilder Studio Check it out!
NEW Version 0.9.7 has arrived! New Blazing Fast Particle Engine & More Game Actions. Check it out
Access a dynamic index of a list when changing property
  • Hi,

    I'm trying to access a list item when using the action "change property". I do this as following:

    @DataContainer.progress = #LevelEnvironment.LevelProgress["item"+@DataContainer.level -1]

    this is not working, but with the action log output I can access:

    Entity.LevelEnvironment.LevelProgress["item"+Self.DataContainer.level ]

    So how can I access a dynamic index of a list when changing property?

    Thanks Jelle

    [RESOLVED]

    I forgot to select expression, can I remove this question :(