playMaker

Author Topic: I Tween Rotate To action once worked and once not  (Read 1446 times)

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
I Tween Rotate To action once worked and once not
« on: April 19, 2017, 06:24:25 AM »
Hi!

I Tween Rotate To action has a strange behaviour.
I don't know what I did wrong, and I'm already sitting the second day on the problem of turning the player.
I feel that I have exhausted all the ideas so help please.

I have two red points.
The player is the violet one.
Player moves to the first red box.
Next when the arrow key is pressed, the player turns and goes to the second red box.
At this point, the rotation is working correctly - the player turns to the object to which it goes.
Please take a look at screenshot.

Unfortunately, rotation it no longer works in the second point, when the player returns to the first red box.
Below is another screenshot.
The action is the same, this is very strange.
In general I noticed that by inserting some of my objects into Transform Rotation in I Tween Rotate To the player stops to rotate.

I will be grateful for every hint.

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #1 on: April 19, 2017, 07:13:16 AM »
Not really a resolution but have you tried using DotTween instead? It's faster and frequently maintained.

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #2 on: April 19, 2017, 07:49:30 AM »
I don't know this action,
I naver saw DotTween.
Where will I find it?

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #3 on: April 19, 2017, 07:55:03 AM »
Download DotTween from asset store, it's free and then actions are on Ecosystem I think.

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #4 on: April 19, 2017, 08:08:20 AM »
Evidently something is wrong with I Tween Rotate To action.
I made small change in "Transform Rotation" from the first red box to white plane behind him.

Now the player is rotating, but it is funny - player object rotates 90 degrees, not 180.
This is mega mystery, I'm going to call Scooby Doo ;-)

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #5 on: April 19, 2017, 09:13:59 AM »
I nstalled this and got stuck
www.assetstore.unity3d.com/en/#!/content/27676

I do not see any doTween action in the Ecosystem.
What do I do next?

And is there an easy way to turn a player 90 degrees or 180 degrees?
But smoothly, because Rotate action works very well, but it is a violent rotate.

Zeb

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #6 on: April 19, 2017, 11:16:29 AM »
Once you’ve installed DoTween you will need to go into your Unity menu under the Tools tab and select Demigiant --> DoTween Utility Panel

In the DoTween window click on the Setup DoTween… button.

Once that’s complete, go to this link: http://hutonggames.com/playmakerforum/index.php?topic=10303.msg48638#msg48638

Install the package attached in the original post (DoTween Actions v1.2.unitypackage) and you should have a zillion useful DoTween PlayMaker actions.

Alternatively, there are paid actions on the Unity Asset Store for DoTween. I think there are more actions in the paid package that cover more complex needs but I highly recommend you try out the free batch first.

Zeb

Tomasz

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Re: I Tween Rotate To action once worked and once not
« Reply #7 on: April 20, 2017, 10:38:29 AM »
Thanks a lot guys!
I combined with doTween but I did not manage.
It also did not help me to turn the player 90 / 180 degrees or toward the direction of his movement.
So I searched the forum and found this:
http://hutonggames.com/playmakerforum/index.php?topic=14529.0
I have seen Jean's example on the Ecosystem.
And it worked for me.
Hip hip hurray!
:-)