Who does this new face belong to?

Comments

Hey Wiz kid! Thanks for taking on the world of gamesalad. I was about to switch engines but your post made me want to stay. I was wondering will their be anyway for us to code a little into the game instead of having it all drag and drop with the lua free engine?

@CodeWizard I have a question for you Mr.Wizard. Would it be possible to make the "Spawn Actor" action able to spawn actors in different layers? It would help out my game sooo much. Thats ahead of time for any reply!

@CodeWizard I have a question for you Mr.Wizard. Would it be possible to make the "Spawn Actor" action able to spawn actors in different layers? It would help out my game sooo much. Thats ahead of time for any reply!

I'm not CodeWizard, but hopefully the answer is still good enough.While theoretically you can spawn an actor in different layers with some code changes, it is not as simple as just adding an attribute selection in the spawn actor behavior.Since scenes have different attributes than other scenes, we have locked off access to scene attributes from prototype actors and thus couldn't accurately let the Spawn Actor behavior specify which layer to spawn to. We would need to do a larger overhaul to the engine to do what you're asking. That would require a larger design to make sure everything would still work without crashing other things.I could possibly think of a solution of referencing a layer by index, with 'current layer' as an option. But you'd also need to make sure if the index is invalid then the behavior gracefully fails to work.

With the current functionality I use one of 2 methods:1) Your layers are just one layer and you treat top of layer, bottom of layer, in front of actor, and behind actor as "layers".2) You have the same actor prototype in different layers and depending on which layer you need, you call that actor via game attribute to spawn an actor defined by another game attribute.

@CodeMonkey Thanks for the answer! I'm just going to spit out another idea that will probably have a good reason for not being implemented, but what about using a change attribute to change the layer? Like this:Inside the scene attributes accessed when double clicking an actor use change attribute: actor.layer to (insert layer name here)

@Utveckla_Games that would probably be a new attribute type needed. Layers don't have unique names so passing in a layer name wouldn't work so easily without breaking someone's project.There's also the case where some layers are scrollable and some are not. That would also affect where actors are drawn when you switch between layers.