Sunday, July 22, 2012

Multiple Labels With One Actor In Gamesalad

In Gamesalad, many people use many actors to display multiple texts. This causes a lag in games and makes the game larger. This is a tutorial to save space in your game by using only one actor for many labels.

We first start off creating a new actor and naming it label. After that, go into the label actor and create a self text attribute (name it label).



Then drag in a Display Text behavior and click on the expression editor (in red circle).


From there, click on label actor, then double-click on the label attribute.


Click the green check mark after. When you are done, drag the label actor onto the scene and double-click the actor on the scene. This should lead you to the actor instance.


Go to the actor's attributes and change the label attribute to whatever you want and the actor will display that text. Press preview to check if it works.

Download Here

Hope this helps you.

CS Genius :)

No comments:

Post a Comment