playMaker

Author Topic: LeanTween Actions for PlayMaker  (Read 20801 times)

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #15 on: April 24, 2015, 05:48:11 AM »
Hey Robot, i'm using LT and your actions for a great chunk of my game... one thing i couldn't figure out though: how do i cancel a tween? I try to use remove tween, but i don't understand how the Tween ID works. In a tween action i get Get Reference: Lean Tween ID... how do i use it? i see that while playing it generates a random number. I tried to create an Int and use it as the ID... but the remove tween action doesn't work with it, what am i doing wrong? what is the way to do it?

Thanks a lot man!

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #16 on: April 24, 2015, 06:02:42 AM »
Don't use remove tween. Use LeanTween Cancel. Store the LeanTween ID generated in an int and use it to cancel.

Check the cancel and cancelAll gameobjects in the example provided with the package.

Make sure you have latest version though, more goodies are there. :)


clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #17 on: April 24, 2015, 06:42:20 AM »
Thanks for the fast reply man!
The only acion i have for stopping tweens is "Lean Tween Remove Tween Cancel a specific tween with the provided id" I also tried to update to the latest version, but it requires U5, i'm still using 4.5.2 because I've spent more than 6 months on this project and am very afraid of breaking it... its complexity is already beyond the point of my understanding :)

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #18 on: April 24, 2015, 07:16:27 AM »
Just PMd you LeanTween Cancel and Cancell All. Try them, won't break your project.

BTW, you can download the U5 version and try the scripts from it. Also, updating the LeanTween Package (not LT actions) can be a nice idea.

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #19 on: April 24, 2015, 08:07:45 AM »
Many, many thanks!
Updated LeanTween and i got an error:
Assets/LeanTween/LeanTweenExamples/Scripts/ExamplePunchJS.js(24,25): BCE0023: No appropriate version of 'LeanTween.rotate' for the argument list '(UnityEngine.GameObject, UnityEngine.Vector3, float, Object[])' was found.
but deleting the script solved it (hope i didnt break something else)!

Thanks man, have a great day!

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #20 on: May 25, 2015, 07:20:00 AM »
Hey Robot,
i started a new project (a small archviz scene) with Unity 4.5.2f1 and the latest package from the asset store says:
Error while importing package: Package has unknown format
Is it packaged for newer version of Unity?
In downloading the latest version i overwrote the older i had cashed on my PC, help.

Thanks

PS: i'm not updating Unity yet, because i haven't finished the "big" game project i'm working on.
« Last Edit: May 25, 2015, 07:24:14 AM by clandestine »

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #21 on: May 25, 2015, 07:29:54 AM »
Yea it's for unity5. Do you have unity 5 installed? If so, download the package in Unity5 and copy the leantween actions folder to you Unity4 project.

If not, let me know, will send you the actions.

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #22 on: May 25, 2015, 07:48:17 AM »
Do you have unity 5 installed?
No, dont have time to play with the new features yet, so i saved myself the distraction for the moment :P

If you still have an older package i'll be very grateful.

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #23 on: May 25, 2015, 07:55:06 AM »
PMd u the actions. They shouldn't cause any trouble. In case they do, let me know.

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: LeanTween Actions for PlayMaker
« Reply #24 on: May 25, 2015, 08:13:46 AM »
PMd u the actions. They shouldn't cause any trouble. In case they do, let me know.
Thanks again for saving me :D
The only errors i got were the UI actions, since i'm running 4.5, deleted and everything shines, no errors.

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #25 on: May 25, 2015, 08:14:57 AM »
Oh yes. Forgot about those. Glad you got it working.

S0ULART

  • Playmaker Newbie
  • *
  • Posts: 27
Re: LeanTween Actions for PlayMaker
« Reply #26 on: June 26, 2015, 09:53:05 AM »
Hello,
is there an option to add the "To" actions from itween into LeanTween?
Like Move to or Rotate to?

greetings
Soul

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: LeanTween Actions for PlayMaker
« Reply #27 on: June 26, 2015, 10:04:08 AM »
The 'move' action in LTActions is essentially the 'move to' of itween.

Already answered this in another thread.