Having a value for layers

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

Comments

  • troynalltroynall Member Posts: 15
    just a little confused. The actor "Layer1" has the following behaviors -

    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.
  • SocksSocks London, UK.Member Posts: 12,822
    Schrödinger's layers ! 8-X
  • SocksSocks London, UK.Member Posts: 12,822
    Schrödinger's layers ! 8-X
Sign In or Register to comment.