How do I set a random number for scaling with litetween?

Get help using Construct 2

Post » Mon Jun 06, 2016 7:52 pm

Well, i have this object that can grow to a random size. But I want it to be smooth, so i'm using litetween for the scaling.
But litetween UNFORTUNATELY doesn't allow to use variables or expressions... I don't know why. This behavior is magic, but have this problem.. :
So, there is a way to achieve what I want with litetween?
B
20
S
4
Posts: 387
Reputation: 2,274

Post » Mon Jun 06, 2016 8:01 pm

LiteTween has Actions to change any of the settings you want.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Mon Jun 06, 2016 8:07 pm

blackhornet wrote:LiteTween has Actions to change any of the settings you want.

But how? when i'm putting the scale that I want for the object, I'm just allowed to enter numbers, and not expressions or variables.
B
20
S
4
Posts: 387
Reputation: 2,274

Post » Mon Jun 06, 2016 9:09 pm

I assume you are talking about the properties. Set the properties you can, then set the variable ones in code, with the LiteTween Actions.
ImageImageImage
B
71
S
22
G
259
Posts: 3,793
Reputation: 143,702

Post » Mon Jun 06, 2016 10:35 pm

blackhornet wrote:I assume you are talking about the properties. Set the properties you can, then set the variable ones in code, with the LiteTween Actions.

Hehe you are right! I discovered how to do this..
The behavior have the action 'create/initialize tween', that is what I always use, along with the 'start' action.
The problem is that inside this 'create' action, you can't enter variables or expression on the target box.. you have to create a separeted target action.
Why? I really don't know hehe
B
20
S
4
Posts: 387
Reputation: 2,274


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests