[Solved] Is there a way to spawn off screen?
KC_Games
Member, PRO Posts: 86
I am making a zombie archery game and want zombies to spawn onscreen and off screen, but my "spawners" don't work offscreen.
Comments
@DreamsComeTrue should work can you send a screen of the spawn behavior? I spawn from off screen actors.
www.rossmanbrosgames.com
Why you dont try to change the size of the scene?
Yeah, I thought that is was possible but for some reason my spawners dont work offscreen and are perfectly fine onscreen. I included a screen shot of my spawner code too. Basically, every second a random number is generated (1-4) and if that = 1, spawn an actor.
Oh never mind. I was being stupid. I had a rule that destroys the actor when they go offscreen (right or left of screen), but it should only apply to the left of the screen and not the right. Sorry, that was dumb!
Ha, that kind of stuff happens to me all the time. The larger your game gets and there more code you have in different actors the more you run into those issues.
www.rossmanbrosgames.com