Actors destroyed if 500px off screen and map sizes?
Franto
Member Posts: 779
I noticed in the notes of the some behaviors, talking about actors disappearing if they are 500 px off camera.
Does this mean if I have a 12,000 pixel length level, that anything beyond 500 from you will disappear? It hasn't happened in the first level, but whenever I got to the second level, a lot of things that should be there are gone, I thought it was because I made duplicates of an actor incorrectly but perhaps it was related to the 500 px off camera destroy effect inherent in the system?
And what is a recommended level size for device games and html5 games? All I know is that games for GameSalad arcade should be no more than 20mb.
Does this mean if I have a 12,000 pixel length level, that anything beyond 500 from you will disappear? It hasn't happened in the first level, but whenever I got to the second level, a lot of things that should be there are gone, I thought it was because I made duplicates of an actor incorrectly but perhaps it was related to the 500 px off camera destroy effect inherent in the system?
And what is a recommended level size for device games and html5 games? All I know is that games for GameSalad arcade should be no more than 20mb.
Comments
My guess is that the center of the actor (self.position.x or y) is what matters but I could be wrong.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
And like he says, GameSalad measures an actor's positions from the centre of the actor (even though he used the American spelling of 'centre', but I'll forgive him for that) - so I suspect a 1,500 pixel long actor with a third of its length overshooting the scene should be fine as its centre will not have even left the screen (let alone gone 500 pixels out of the scene).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User