playMaker

Author Topic: Manually animate an object on and off  (Read 177 times)

shack

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Manually animate an object on and off
« on: April 08, 2019, 03:11:10 PM »
Hey, I have a platform (built in C4D) that randomly spawns at different locations (prefab). I want it to animate along the Y position from 10 to 0 to enter the scene, then animate out (when it disappears) from 0 to -10. I started building an animation for it, but there's 17 of them and am not sure if it is better to do the animation in C4D or to move the position manually within playmaker for each object? If so, what should I use to animate the position change only along the Y (since the X and Z will be different each time and i want it to tween into/out of place). Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4369
    • View Profile
    • jinxtergames
Re: Manually animate an object on and off
« Reply #1 on: April 09, 2019, 04:51:01 AM »
Hi.
You can use a float interpolate or vector3 interpolate
along with a 'set position'

Use the result from the interpolate on the set position action.

Also turn on every frame.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

shack

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Re: Manually animate an object on and off
« Reply #2 on: April 10, 2019, 01:22:08 PM »
Hi.
You can use a float interpolate or vector3 interpolate
along with a 'set position'

Use the result from the interpolate on the set position action.

Also turn on every frame.

Exactly what I was looking to do! Thanks. What if I want to have it fade in and out as well? I don't want to use set material because the objects are multiple objects within the main parent. Is there a way to just set the opacity of the empty game object to fade everything else out?