Having a value for layers
games4fun
Member Posts: 185
Hi,
I was wondering if its possible to have lets say 10 actors and have a rule that displays which actor is the top layer and label it 1 and second layer to the top label it 2, and all the way down to the bottom layer and label it 10.
Thanks
I was wondering if its possible to have lets say 10 actors and have a rule that displays which actor is the top layer and label it 1 and second layer to the top label it 2, and all the way down to the bottom layer and label it 10.
Thanks
Comments
Might be useful.
Darren.
Top Most Rule/First Rule -
Change Attribute game.LayerNumber = 1
Display "1"
Second Rule
When Actor is Pressed
Change Attribute game.LayerNumber = 1
So This Actor will always set the LayerNumber to 1 ?
But what about Layer 2 and Layer 3.
They are also "always" setting game.LayerNumber to 2 and 3 (respectively)
It seems that GAMESALAD engine is constantly changing the game.LayerNumber to
1,2,3...1,2,3...1,2,3...(repeating)
AND THEN when the Layer Actor is TOUCHED, the engine "really" sets the game.LayerN umber appropriately.