playMaker

Author Topic: Light animation[SOLVED]  (Read 3937 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Light animation[SOLVED]
« on: April 09, 2014, 12:57:58 PM »
Hi!
I have a light animation, which it's just fading out in 4 sec., but the animation is playing even if I'm not asking for it. I also get an error as well.

"The AnimationClip 'LightFadeOut' used by the Animation component 'Directional light' must be marked as Legacy."

And

"GameManager : FSM : State 2 : PlayAnimation : Missing animation: LightFadeOut"

I don't understand this, I have the animation file, and I can't set the animation to Legacy, because there isn't option for it.

Please, I need some help with it. It's a little bit frustrating.
« Last Edit: April 14, 2014, 08:14:49 AM by jeanfabre »
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Light animation
« Reply #1 on: April 09, 2014, 02:40:23 PM »
Hi,

You haven't imported/setup your fbx properly, all these warnings are Unity warnings. It's all  to be fixed prior working within PlayMaker.

Also, this Light animation, if it's just a fading, I would strongly encourage you program it using playmaker and not using a baked animation coming from the FBX, that sounds to me too much for too little.

is it just a question of animating the brightness of the light aftter all?

bye,

 Jean

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Light animation
« Reply #2 on: April 09, 2014, 02:53:03 PM »
Hi!

I did the animation in Unity. I have no FBX to it. Just an animation file.

I just want to fade out the light over a specific time. I also tried to use the Playmaker action "Fade Out", but it just fade out until it's totally dark.
To animate the light is very useful, using the build in animation.
But why does the animation play automatically when I start the game? Even if I have no FSM where I play the animation, it's just playing.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Light animation
« Reply #3 on: April 09, 2014, 03:15:48 PM »
Why not just use an Animate Float action to bring the light strength down on a curve?

Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Light animation
« Reply #4 on: April 09, 2014, 04:49:07 PM »
Yes, I can of course try, but I don't understand why I get these errors.

You can try by yourself.
-Select Directional Light in the Hierachy
-Open the animation window.
-Click on add Curve
-Save the new animation
-Add new light intensity
-On the first key, you add an intensity value. For example 1.
-The last key, you add for example 0.2.

Then run the game. The animation will just play. I don't want this. I want to start it by myself.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Light animation
« Reply #5 on: April 10, 2014, 03:29:14 PM »
Forget it!

I had an FSM for some reason went to the state where the animation is playing.
It's working now. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no