How To Create Custom Properties

Favorite This Post!
0 Votes
Posted by Lavon on April 1, 2013

Custom properties are essential to creating a game. At some point you are going to need to store a value in a property to keep track of it for reference later. Or to maintain some simple state. The Data Storage Component is used to store custom properties that can be accessed via a property reference or with an expression.

Data Storage Component

%STEP_TITLE%

This component allows you to store custom properties that can be accessed using the component name that you set like this: "Data.myProperty". To reference the same property in a dynamic expression just do this: "Self.Data.myProperty".

Global Properties

You may need an ability to have a property that you can access globally across levels. This is coming very soon...


Congratulations on finishing this tutorial! Found it helpful? Spread the word...


Comments

There are no comments yet!


Anyone can leave a comment!


You just need to signup for an account or log-in before you can comment.