How to make actor's (width or height) stretch, at a set speed, when spawned? Pic inside

Hello.

I can spawn an actor but I am not sure on how to stretch the height of the actor at a set speed until it hits something.

Basically, I want what the 'change size' behaviour does but i only want either width or height to change. not both.

Help would be much appreciated.
thanks

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    This is what the Interpolate behavior is for. That or a Timer with something like every 0.1 seconds change self.size.height to self.size.height+1. If you need to use collision rules, you're better off with a timer.

  • colandercolander Member Posts: 1,610
    edited June 2014

    Here is an example with interpolate and a timer rule (You can also use a Timer behaviour instead). Turn Interpolate off and the Timer rule on to see the difference.

    As tatiang said with a timer you can use a whole bunch of conditions.

  • cyrixaucyrixau Member Posts: 1

    Thanks, appreciate your help!!

Sign In or Register to comment.