Spawning actors where scene ends
AngryBoi
Member Posts: 586
Right now, when the scene ends, I have three actors spawn. A next lvl button, a menu button, and a leaderboards button. How can I make those actors spawn on the screen at all times? Right now, I have certain locations for the spawning, but on some lvls, it isn't the right location. Thanks
Comments
I'm not quite sure what you mean, but if you do mean that the scenes are different sizes and you're currently spawning them by that position. What I mean is that if one scene is 5000 pixels wide, you spawn them on pixel 4840 for example. If the next level is 6000 pixels you have a big problem. If that is what you are doing I recommend you stop that right away.
Instead go to the layers tab, and create a new layer. Uncheck scrollable on this one. Make sure you put your spawner in this layer! Then it's just to call the spawner when the level is complete and spawn it on pixel 160 and it will be in the center (if iPhone portrait) no matter how long the level is.
I hope this helps, and good luch with your game
No, thats not at all what I mean. But thanks.
@MoneyBags You could maybe post a picture of it as it would be easier to understand.