Sprites dying too offscreen
smurfted
Member, PRO Posts: 586
So GS kills the sprites when they go to far off screen. I need to stop this...
Any ideas?
Comments
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?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
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
...
GSLearn.com | Templates | Free Demos | Udemy Course
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).
No kidding @Socks?
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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
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").