tWeeen (Construct 3 Behaviours)

You're viewing a single comment in a conversation. View all the comments
  • 4 Comments

  • Order by
  • Hey,

    Thanks for the plugin. It's great!

    Just one thing. I'm trying to dynamically change a value (angle & duration) for a random spin of an object.

    I've tried initializing and using the random(xxx,xxxx) and also using a variable that gets set like that too.

    My problem is that after the first initialization, the values seem to be hardcoded and just keeps repeating that first value each time.

    I may be just being stupid :D

    • I worked it out - I didn't realise you had to re-initialize each time.

      I now have a problem where I can't get the opacity to tween correctly. I initialize and then set the target to 80%.

      Everytime I call the Tween, it goes straight to 100% and ignores duration/target value etc.

      Any ideas>?

      • Yes, you have to re-initialize it each time. The idea is that you only have to initialize it once and can re-use it everytime. But of course if you need to change the values you have to re-initialize it with the new values.

        Regarding opacity: The target is between 0 and 1, not 0 and 100, that is likely the reason why it appears to jump. But since it isn´t really mentioned anywhere, I´ll make sure to add that info in the next release!

        If that doesn´t solve it I´d request you share the code so I can take a look.

        • Yup. I understand that logic now. It does make more sense that way!

          And thank you, that solved my problem regarding the opacity!!

          Thanks for your help!