Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: akdialek on July 02, 2018, 11:35:09 AM

Title: Use Active object as trigger (event)
Post by: akdialek on July 02, 2018, 11:35:09 AM
Hello,
Iam new to playmaker and i am making quite some process in learning the tool.
One thing I can not accomplish is the following:
I want to make an animation system where different objects are triggering different stuff only by becoming active in the scene.
I do not want to use a collider trigger. If possible it should also allow more complex szenarios. e.g.

Object1 solo: object1 anim1
object2 gets active: object1 anim2
object 2 & 3 get active: object1 anim3
and so on -  for different objects and pairings.

I hope it is somehow understandable what i try to do.
Thank you very much!!
Title: Re: Use Active object as trigger (event)
Post by: djaydino on July 03, 2018, 01:25:21 PM
Hi.
Probably its best to do this in the Animator and use bools.

You can then use "Set Animator Bool" to set to true or false
For Example :
object2 is active, then set object2 bool to true

Then in the transitions you can use the conditions to select the needed animation.
for Example :
object2 and 3 are active (and set to true)
the transition that has 2 conditions (object 2 and 3) and both are true, will go to the connected state(animation)

You can find several tutorials on youtube for the animator.
Title: Re: Use Active object as trigger (event)
Post by: akdialek on July 05, 2018, 06:17:48 AM
Hi.
Probably its best to do this in the Animator and use bools.

You can then use "Set Animator Bool" to set to true or false
For Example :
object2 is active, then set object2 bool to true

Then in the transitions you can use the conditions to select the needed animation.
for Example :
object2 and 3 are active (and set to true)
the transition that has 2 conditions (object 2 and 3) and both are true, will go to the connected state(animation)

You can find several tutorials on youtube for the animator.
thank you very much for the answer!
i will check out the animator.
all the best
Felix