When i return to a scene my destroyed actors are back!

fayeburtenshawfayeburtenshaw Member Posts: 9
edited November -1 in Working with GS (Mac)
I have a rule that when my actor collides with stars the stars are destroyed which works fine. My actor travels back and forth across scenes and when it returns the destroyed stars are back. How do i keep them destroyed when the actor returns to a previous scene? Any ideas?
Thanks.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    you'll need to keep track of them in a global attribute and show or hide them depending on that.
  • fayeburtenshawfayeburtenshaw Member Posts: 9
    Thanks - I will give that a go,
    Cheers
  • osucowboy18osucowboy18 Member Posts: 1,307
    If you don't want them to EVER come back, even if the user restarts the game, you would have to also save the global attribute jonmulcahy mentioned above.
  • AjBlueAjBlue Member Posts: 215
    or you can run a save attribute when you actor changes scenes
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you will also need to use keys when saving for future uses otherwise just saving will not keep the attribute once the app is closed. That may be a given to some, but I figured might as well mention it.
  • fayeburtenshawfayeburtenshaw Member Posts: 9
    Thanks for your help - thats been useful.
    Cheers
Sign In or Register to comment.