Destroy won't work until interpolate is complete.

scrapee_netscrapee_net Member Posts: 424
edited August 2012 in Working with GS (Mac)
I noticed that when there is an interpolate behavior, it wont be possible to destroy the actor before the interpolate achieve it's value. Is this a problem?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It's a problem if you think it's a problem. ;) Do you mean "is this a bug?"

    Here's what I did to test this:
    Rule: When Mouse Button is Down --> Destroy
    Rule: Interpolate self.position.X to 480 ... Duration 5

    If I click/tap at any time, the actor disappears.

    What rules are you using?

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

  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    Another alternative is to have a boolean switch. Interpolate only when "true". When you switch the boolean to false, you can then manipulate the actor (i.e. destroy).
Sign In or Register to comment.