Sprites dying too offscreen

So GS kills the sprites when they go to far off screen. I need to stop this...

Any ideas?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You cannot avoid the void.

    That being said, is there a way you can stop actors when they reach a certain point outside the scene boundaries and then move them to the other side of the scene? Or destroy and respawn them?

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @smurfted

    actors automatically get destroyed if their center points are 500 pixels outside the scene.

    If @tatiang 's suggestion does not help you, maybe because you are moving very large actors, then you will need to increase the size of your scene, and move the camera to the middle.

  • smurftedsmurfted Member Posts: 586
    edited August 2017

    Thanks for the advice lads..

    just started making the screen bigger (with the camera in the middle) but now my joystick control code doesn't work anymore :(

  • Two.ETwo.E Member Posts: 599
    edited August 2017

    ...

  • SocksSocks London, UK.Member Posts: 12,822

    @Hopscotch said:
    maybe because you are moving very large actors . . .

    The size of an actor has no effect on its position, a 4x4px actor moving left at 500pps will be killed at exactly the same time as a 1000x1000px actor moving at the same speed (and starting at the same start position).

  • HopscotchHopscotch Member, PRO Posts: 2,782

    No kidding @Socks? :p

    The implication here is that a 1024 wide moving background image will be destroyed before its right hand edge has exited the left hand side of the scene.

  • SocksSocks London, UK.Member Posts: 12,822

    @Hopscotch said:
    No kidding @Socks? :p

    The implication here is that a 1024 wide moving background image will be destroyed before its right hand edge has exited the left hand side of the scene.

    Ah! I see what you mean now, yes that makes sense, I thought you were referring to 'sprites' ("GS kills the sprites when they go to far off screen").

Sign In or Register to comment.