spawnning an actor in back layer (scrollable layer)
digitalzero
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
You can only spawn to the layer the spawning actor is on. What layer is the spawning actor on?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
so what exactly does it mean when it says in back or in front of actor in the actor?
Agreed ! I just thought I'd throw that idea into the mix, but yes a spawner can only spawn to its own layer.
'In back of' means behind the actor, 'in front of' means . . . er . . . in front of the actor !
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support