does actor automatically destroyed when it goes way off screen?

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
the question is like the title , if an actor has a rule to "move down" and it went off screen but still moves down, is it destroyed at some point? or is it just keep moving down even at " -10000000"

Comments

  • synthesissynthesis Member Posts: 1,693
    I think it basically keeps going. I imagine if it exceeds the exponential value structure (which is absolutely enormous)...it will crash or just stop moving at its max point. I doubt you will ever wait long enough for it to exceed its exponential limits.

    You can always put a rule in there...
    When self.position.X > 3000 (or whatever)
    destroy self.

    Then add other thresholds comparisons in the rule and set the rule to "ANY"
  • X-rayGamesX-rayGames Member Posts: 66
    yea like synthesis said it'll just keep goin, you can put a wall if you want.
  • POMPOM Member Posts: 2,599
    thanks, i have a rule like you mentioned, but i was wondering because if you look at the scene viewer (not the preview) and press play, an actor that goes off screen too much is automatically restored in a fade look at its initial position..
  • GingerBGamesGingerBGames Member Posts: 390
    I think that's just a reference point, so you know the actor is in the scene. You will need to make a wall or border, and in your actor that's going to crash into the border/wall, a rule:

    Rule,
    when actor "A" over lapse or collides with "Wall/border"
    Destroy this actor ("A").

    You'll want to do this anyways, because the "A" actor will continue to go, thus using resources you don't need to be using. Try to think about optimizing your resources. Gamesalad is very hard on resources, so anytime you can save some, try to!
  • reddotincreddotinc Member Posts: 653
    I simply set the actor to destroy once it is off the screen based on it's X/Y value.
  • POMPOM Member Posts: 2,599
    Done ! =)
  • butterbeanbutterbean Member Posts: 4,315
    No actually, an actor will eventually destroy itself when way off screen.

    I've had this happen with a game where I had tons of items scrolling back and forth, once they reach a certain point, it is the point of no return! :)
  • design219design219 Member Posts: 2,273
    I'm pretty sure I remember code monkey saying they were destroyed at a some distance, but it's been at least 6 months ago, and I could never find that thread.

    _________________________________

    HOLY NOSE JOB!: Nesen Probe: Is this the single most unappealing game in the history of GameSalad? I can't seem to give it away! Anywhere. But if anyone want's to try it out, codes are still available near the end of the thread! http://gamesalad.com/forums/topic.php?id=8097
  • butterbeanbutterbean Member Posts: 4,315
    Yeah Codemonkey confirmed that for me not too long ago, and I confirmed it within my game, because when I had items scrolling off screen, some of them wouldn't come back, and they were the ones that went farthest out, so yes, they will destroy off screen at a certain distance (not sure how far)
  • iDeveloperziDeveloperz Member Posts: 1,169
    If it goes so far it gets destroyed.

    Proof? Then create an actor that accelerates upwards and downwards. Then hold your finger on the up key for 5 seconds followed by the down key for 10. You will see that it won't come back as its deleted.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Yes, an actor will get destroyed automatically if it goes too far past the edge of the Scene - not just the Camera View (unless they are the same).

    It isn't a set pixel distance, it depends on the size of the Actor.

    In any case, I would destroy/move everything yourself instead of relying on GameSalad to destroy things for you...
Sign In or Register to comment.