[Solved] Smoothly animate the shrinking of an actor until it hits a threshold

thatmanthatman Member Posts: 7
edited November -1 in Working with GS (Mac)
This one is probably super-newbie... but...

How can I shrink an actor (and the collision portion of the actor) from 1.0x to 0.25x in a smooth transition?

I tried a timer that goes every 0.3 seconds with a "Change Size" growth rate of 0.5, but the actor isn't changing size as I would (naively) expect.

Thanks!

Comments

  • m456arcusm456arcus Member Posts: 189
    Use the interpolate behaviour, two of them. One for self.hieght and one for self.width. Set a time, and what size you want them to end up at, and it should work nicely.
  • thatmanthatman Member Posts: 7
    Awesome. Thanks!
  • thatmanthatman Member Posts: 7
    Also, in my original attempt, I failed to read that Change Size Growth Rate should be negative to reduce the size (not just < 1)
Sign In or Register to comment.