GameSalad

Interpolate behavior can't destroy?

WeiyuWeiyu Posts: 201Member, PRO
edited March 17 in Working with GS (Mac)

Hello everyone!
I have a problem about interpolate again.

Stair was going to destroy when Player collision stair.
But I have no idea why it can't trigger.

Please help me how to slove this problem.
Thank you. :'(

------------------This is my behaviors------------------

Player behaviors:
When collision "Stair"
Change "game.collision" to "1"

Stair behaviors:

When "self.size.width" = "200"
Interpolate "self.size.width" to "250" for "0.5" seconds
Else:
When "self.size.width" = "250"
Interpolate "self.size.width" to "200" for "0.5" seconds

When attribute "game.collision" = "1"
Destroy

Comments

Sign In or Register to comment.