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

0 favourites
  • 5 posts
From the Asset Store
Jump on numbers in the proper order and reach the sun!
  • 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?

  • LiteTween has Actions to change any of the settings you want.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

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

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)