spawnning an actor in back layer (scrollable layer)

digitalzerodigitalzero Member, BASIC Posts: 639

im trying to do this and everything checks out as im looking at the code... i have it spawnned in the back layer but i seem to always have this problem... the layer under is scrollable and the layer on top is unscrollable and instead of it moving as if its on a scrollable layer it always comes as unscrollable... is anyone else having this same problem?

Comments

  • ArmellineArmelline Member, PRO Posts: 5,368

    You can only spawn to the layer the spawning actor is on. What layer is the spawning actor on?

  • SocksSocks London, UK.Member Posts: 12,822

    @Armelline said:
    You can only spawn to the layer the spawning actor is on.

    Unless (through an attribute) you trigger an actor on another layer to spawn - so a collision on a scrollable layer could spawn (via > attribute > spawner on the target layer) an actor on a non-scrollabale layer.

  • ArmellineArmelline Member, PRO Posts: 5,368

    @Socks said:
    Unless (through an attribute) you trigger an actor on another layer to spawn - so a collision on a scrollable layer could spawn (via > attribute > spawner on the target layer) an actor on a non-scrollabale layer.

    Technically, that's still spawning the actor on the layer the spawning actor is on :tongue:

  • digitalzerodigitalzero Member, BASIC Posts: 639

    so what exactly does it mean when it says in back or in front of actor in the actor?

  • SocksSocks London, UK.Member Posts: 12,822

    @Armelline said:
    Technically, that's still spawning the actor on the layer the spawning actor is on :tongue:

    Agreed ! I just thought I'd throw that idea into the mix, but yes a spawner can only spawn to its own layer.

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2015

    @digitalzero said:
    so what exactly does it mean when it says in back or in front of actor in the actor?

    'In back of' means behind the actor, 'in front of' means . . . er . . . in front of the actor ! :smile:

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Actors are ordered within each layer from front to back. Think of a layer in Photoshop, Illustrator, etc., with objects (in this case actors) that are stacked on top of each other. When you spawn in back of an actor, it goes below/behind that actor. When you spawn in front of an actor, it goes above/in front of that actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ArmellineArmelline Member, PRO Posts: 5,368

    @tatiang said:
    Actors are ordered within each layer from front to back. Think of a layer in Photoshop, Illustrator, etc., with objects (in this case actors) that are stacked on top of each other. When you spawn in back of an actor, it goes below/behind that actor. When you spawn in front of an actor, it goes above/in front of that actor.

    While this is absolutely true, the word layer in GameSalad is a bit of a misnomer. Each actor is on its own Photoshop "layer", and the "layers" in GameSalad are more akin to groups of layers in Photoshop.

    The whole business can definitely be tidied up and clarified when GameSalad get around to updating the Creator interface.

Sign In or Register to comment.