Spawn/Destroy Question

Fal01Fal01 Member Posts: 460
edited February 2012 in Working with GS (Mac)
Hi All,

In my game I have various actors which spawn at the bottom of the screen and Destroy at the top, the problem is that when the actors appear at the bottom of the screen they are fully formed and when they hit the top of the screen they disappear instantly. How do I make them appear/disappear gradually?

Oh, and the scene has a Y wrap.

Cheers.

It’s not a bug – it’s an undocumented feature

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Use interpolate to fade them out before they destroy.
  • Fal01Fal01 Member Posts: 460
    Hi FBS,

    Is it possible to make the top of the actor fade before the bottom doing this? so it looks like it's just going off screen.

    It’s not a bug – it’s an undocumented feature

  • EatingMyHatEatingMyHat Member Posts: 1,246
    You can continue the actor movement to a number higher than the screen size. Increase your screen size to fit the actor outside of the screen and make sure it moves all the way up before you destroy it. You can do the same without increasing the screen size, just make sure you don't wrap the Y axis.

    In general, it's better to recycle the actor instead of spawn/destroy. Just let him go off screen and move it back down when you need it.


    Follow Eating My Hat on Facebook and the Blog
    Check out my templates in the GS Marketplace or at the store
  • Fal01Fal01 Member Posts: 460
    Cheers, but as I said on the first post, it has a wrap on the Y axis.

    It’s not a bug – it’s an undocumented feature

Sign In or Register to comment.