playMaker

Author Topic: Use Active object as trigger (event)  (Read 1158 times)

akdialek

  • Playmaker Newbie
  • *
  • Posts: 2
Use Active object as trigger (event)
« 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!!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Use Active object as trigger (event)
« Reply #1 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.

akdialek

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Use Active object as trigger (event)
« Reply #2 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