Spawn Actor in another layer
BigDave
Member Posts: 2,239
I do want the player actor to spawn the control buttons (actors) into the none scrollable scene layer while the player remains/is in the scrollable scene layer.
Is this somehow possible?
I want to do it this way since I think it would be an extremely elegant solution to have the UI originating out of the main actor(player). Which is possible right now but the UI would be left behind as the players moves ahead if it isn't in a none scrollable scene layer. ( i do not want to constrain them, for saving that performance)
Comments
You can probably do it by triggering the spawn in another actor that's on the correct layer by using a game attribute that the second actor monitors.
Unfortunately I don't think you can spawn to a different layer directly.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Like @Armelline has said spawning to another layer is outside of GS capabilities but the easest way to achieve this is just trigger a Boolean and have another actor spawn it in the correct layer. Just remember to have that actor also reset the Boolean
too bad but ok thanks for the insights
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
I don't think spawning onto a non-scrollable layer using a second actor would be a problem the trick might be that the non-scrollable layer is always at the 0,0 location. So your player would have to be in that area also.
Another option is to just fake it and have the buttons spawn from the player and when they reach their destination destroy them and have the real buttons appear on the non-scrollable layer.
Twitter:rondorocket
Web: rondorocket.com