How to make actor's (width or height) stretch, at a set speed, when spawned? Pic inside
cyrixau
Member Posts: 1
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
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
Thanks, appreciate your help!!