Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gbhosl on October 31, 2018, 05:07:48 AM

Title: Problem with trigger events
Post by: gbhosl 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.
Title: Re: Problem with trigger events
Post by: jeanfabre 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
Title: Re: Problem with trigger events
Post by: gbhosl 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


Title: Re: Problem with trigger events
Post by: jeanfabre 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
Title: Re: Problem with trigger events
Post by: gbhosl 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
Title: Re: Problem with trigger events
Post by: jeanfabre 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
Title: Re: Problem with trigger events
Post by: gbhosl 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.
Title: Re: Problem with trigger events
Post by: gbhosl on November 06, 2018, 07:43:54 PM
So is it solvable?
Title: Re: Problem with trigger events
Post by: jeanfabre 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