playMaker

Author Topic: Rotate an object to play animation on others.  (Read 2400 times)

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Rotate an object to play animation on others.
« on: May 09, 2014, 01:27:42 PM »
Hi all,
I needed help/pointers here. Hope someone can shed some light.

Say, I have 2 object in the scene. One is just normal game object, say a cube. The other is a blooming flower which was animated from 3ds Max. What I would like to achieve is that when I rotate the game object (camera view vice, not sure if this is an important criteria), the flower will bloom. Basically, when the game object were to rotate 360 degree, the flower will be fully bloomed. In other words, the flower's animation need to synced with the rotation of the object's rotation.

How do i achieve this with playMaker?

Thanks in advance.

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Rotate an object to play animation on others.
« Reply #1 on: May 11, 2014, 10:28:02 AM »
any idea anyone?

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Rotate an object to play animation on others.
« Reply #2 on: May 11, 2014, 08:24:42 PM »
I'll see what I can come up with when I get home. I don't have too many animated assets to play with, so we'll see what I can find on the asset store. I imagine you can pick frames/increment them based on the rotation. It's just not something I've thought about.  :o

EDIT: I highly suggest you try using this:
Set Animation Time action
https://hutonggames.fogbugz.com/default.asp?W17
« Last Edit: May 11, 2014, 08:52:17 PM by TrentSterling »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Rotate an object to play animation on others.
« Reply #3 on: May 11, 2014, 09:15:07 PM »


Set Animation Time is what you need.

You could use Get Rotation and apply that number to the animation time. Normalized makes it 0-1. Otherwise I believe its based on number of frames.
« Last Edit: May 11, 2014, 09:17:40 PM by TrentSterling »

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Rotate an object to play animation on others.
« Reply #4 on: May 15, 2014, 01:19:49 PM »
@TrentSterling; thanks for tips. And Sorry that I missed out the reply. Didn't get notification for any reply to the thread.

Thanks again. Will give it a go.

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Rotate an object to play animation on others.
« Reply #5 on: May 15, 2014, 02:43:48 PM »
No problem. I'm hoping to help out here as much as I can as I get more familiar with PlayMaker.

You actually ended up teaching me something via exploration of animation actions.  ;D

If this works for you, don't forget to mark the thread title with [Solved].