playMaker

Author Topic: Problem with trigger events  (Read 1705 times)

gbhosl

  • Playmaker Newbie
  • *
  • Posts: 5
Problem with trigger events
« on: October 31, 2018, 05:07:48 AM »
Hey guys, I am fairly new to Playmaker and I have met with a problem:

Currently, I am trying to use a stick to collide with buttons with trigger events, and I have a total of 3 buttons, lets call them A, B, and C.

Naturally, what i want is when the stick touches button A, the actions in event A happens

But the problem I am having is that when stick touches A or B, it only runs the actions in event C.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with trigger events
« Reply #1 on: October 31, 2018, 06:35:46 AM »
Hi,

There is a lot of confusing things here.

- what do you mean by "stick", is it a joystick or a 3d object in your scene?
- Event are not actions, so I guess you mean that when stick touches button A, you want to send the event A which will execute the actions on Event A state right? can you confirm?

what technic do you use to catch that your stick has touched button A or B? can you make screenshots of your fsm and gameobject inspector?


Bye,

 Jean

gbhosl

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Problem with trigger events
« Reply #2 on: October 31, 2018, 08:28:15 PM »
Sorry for not clarifying :P

- The stick is a 3d object in the scene
- Yes that is exactly my intention, but it isn't working right


« Last Edit: October 31, 2018, 11:32:29 PM by gbhosl »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with trigger events
« Reply #3 on: November 01, 2018, 04:56:35 AM »
Hi,

 your screenshot is not showing how you have setup the collision trigger, so I can't say for sure what's not setup correctly :) can you take the full stats stack of actions?

 Bye,

 Jean

gbhosl

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Problem with trigger events
« Reply #4 on: November 01, 2018, 05:46:06 AM »
Is this what you mean?

Sorry I'm not too familiar with the names and labels of the program

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with trigger events
« Reply #5 on: November 01, 2018, 06:35:36 AM »
Hi,

 no :) it's your first screen shot where you have the trigger event action disable and the collision trigger action enabled, I don't see the bottom of it so I don't know how you have plugged the event.

don't worry, we'll get to the bottom of this.

 Bye,

 Jean

gbhosl

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Problem with trigger events
« Reply #6 on: November 01, 2018, 08:22:27 PM »
Ahh ok, here's the screenshot

Thanks for being patient :D

Edit: Short update, I went ahead and trial-and-errored the buttons by deactivating 2 while leaving the other active, and I found out that all the buttons work as intended, where button A goes to result A and so on, but when I activate more than 1 button, it starts to not work properly.
« Last Edit: November 02, 2018, 04:08:09 AM by gbhosl »

gbhosl

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Problem with trigger events
« Reply #7 on: November 06, 2018, 07:43:54 PM »
So is it solvable?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with trigger events
« Reply #8 on: November 12, 2018, 12:45:19 AM »
Hi,

 yes, it is definitely solvable.

You should go back to a simple scene, make one button, then another and work your way into the final setup.


bye,

 Jean