playMaker

Author Topic: HOTween playmaker custom actions  (Read 53270 times)

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #30 on: August 28, 2013, 05:43:32 AM »
How can I stop immediately any HOtweens?

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #31 on: August 30, 2013, 12:08:55 PM »
No Ideas on that?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #32 on: September 10, 2013, 01:10:07 AM »
Hi,

 Please have a go at this action attached. Tell me if that's suitable. Else can you precise the type of action you are using that you would like to stop.

 Bye,

 Jean

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #33 on: October 24, 2013, 03:15:02 PM »
Hey there:

If I assign an ID to a Tween (with the Visual Editor), for example "Tween1" and use the same ID for another Tween only one will be played when I use the "Play By ID"-Action. Using HOTween by Code ALL the Tweens with that ID are played, not only one. How can make this with PlayMaker?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #34 on: October 26, 2013, 02:14:09 AM »
Hi,

 Can you share the code that actually play ALL ID? I'll see how I can make it happen in Unity.

bye,

 Jean

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #35 on: October 26, 2013, 06:24:51 AM »
You simply use HOTween's static methods, passing a string id as a parameter, like:

Code: [Select]
HOTween.Play("Tween_Transform");

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #36 on: October 26, 2013, 08:45:12 AM »
Hi,

 Ok, Can you try that?

Bye,

 Jean
« Last Edit: October 31, 2013, 02:52:11 PM by jeanfabre »

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #37 on: October 26, 2013, 04:55:30 PM »
Yes, that did the job, great, thanks! :D

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #38 on: October 27, 2013, 03:23:00 AM »
But what about the settings?
In the other Action "Hotween Play By ID" I can choose the PlayType, the Start Action and Events.

Is it possible to do that with this new Play-Action?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #39 on: October 27, 2013, 03:34:40 AM »
Hi,

 Yes, I'll add it. Come back to me mid week if you haven't heard back.

Bye,

 Jean

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #40 on: October 27, 2013, 03:40:53 AM »
Alright, great! Thanks a bunch!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #41 on: October 31, 2013, 07:19:53 AM »
Hi,

 ok, I have added start and exit setup, but events can't go in as playing HOTween this way doesn't give you access to feedback so I can't know anything about the current process when you play tween this way.

 If you have a particular need, I would contact the author, maybe there is a trick that I am not aware of, if there is a working sample or script, then I can turn it into a playmaker action or fsm.

bye,

 Jean

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #42 on: October 31, 2013, 09:18:29 AM »
Ah, alright. But how am I supposed to determine when the Tween is finished?

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: HOTween playmaker custom actions
« Reply #43 on: October 31, 2013, 09:20:34 AM »
I also get this error:

Assets/1_MyAssets/SCRIPTS/CUSTOM PLAYMAKER SCRIPTS/HotweenPlay.cs(18,24): error CS0246: The type or namespace name `OnStartAction' could not be found. Are you missing a using directive or an assembly reference?

Edit:

I looked into the script and if I'm not mistaken there is no OnStartAction-enum and no states like RewindIfCompletet, alwaysRewind and so on.

Edit2:

Another error:

Assets/1_MyAssets/SCRIPTS/CUSTOM PLAYMAKER SCRIPTS/HotweenPlayAllTweens.cs(50,36): error CS0103: The name `playType' does not exist in the current context


Edit3:

I desperatly need the Tweens to "Rewind if Complete" in the StartAction!
« Last Edit: October 31, 2013, 01:54:50 PM by Mayhem »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOTween playmaker custom actions
« Reply #44 on: October 31, 2013, 02:51:15 PM »
Hi,

 sorry, that was a very bad copy paste action from the other one... :) redownload please.

 -- start actions are not possible in this case, because of the type of call, calling a global "Play" method can not verify if any of the targeted id will need rewinding.

what I can do is give you another action to Rewind globally. Would that do?

bye,

 Jean