Actors destroyed if 500px off screen and map sizes?

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.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Actors that are more than 500 pixels outside the scene are destroyed, it your scene is 12,000 pixels wide the actor would need to go 500 pixels outside of this 12,000 pixel area.
  • FrantoFranto Member Posts: 779
    Oh, I see. What if an actor's length is say 1,500 pixels, and over 500 pixels of its length are off screen, does it get destroyed?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Oh, I see. What if an actor's length is say 1,500 pixels, and over 500 pixels of its length are off screen, does it get destroyed?
    What happens if you try it? :-w

    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

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    Oh, I see. What if an actor's length is say 1,500 pixels, and over 500 pixels of its length are off screen, does it get destroyed?
    Like @tatiang says, this is a bit of a 'what happens if I type 20 'x's in a row in a forum post type question. :)) Why not try it, it's easy enough.

    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).
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    xxxxxxxxxxxxxxxxxxxx

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822
    @tatiang
    xxxxxxxxxxxxxxxxxxxx
    I've not got time to read your post, can you just tell me what happened ?
  • FrantoFranto Member Posts: 779
    Ah, I see. I haven't tested it out since I'm having memory problems : (, sometimes dragging a large actor causes GS to crash, and even just loading the game preview takes about 2 minutes. I'm thinking it might be my computer or the game file has gotten to big.
Sign In or Register to comment.