[Solved] Is there a way to spawn off screen?

KC_GamesKC_Games Member, PRO Posts: 86
edited August 2014 in Working with GS (Mac)

I am making a zombie archery game and want zombies to spawn onscreen and off screen, but my "spawners" don't work offscreen.

Comments

  • RossmanBrothersGamesRossmanBrothersGames Member Posts: 659

    @DreamsComeTrue‌ should work can you send a screen of the spawn behavior? I spawn from off screen actors.

  • Andrea_ComisiAndrea_Comisi ItalyMember Posts: 328

    Why you dont try to change the size of the scene?

  • KC_GamesKC_Games Member, PRO Posts: 86

    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.

  • KC_GamesKC_Games Member, PRO Posts: 86

    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!

  • RossmanBrothersGamesRossmanBrothersGames Member Posts: 659

    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.

Sign In or Register to comment.