Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Stabby on April 07, 2012, 10:42:52 PM

Title: Running Sound [SOLVED]
Post by: Stabby on April 07, 2012, 10:42:52 PM
Ok so I am quite new to Unity in general but have had some experience, I am looking do something quite basic using playmaker but seem to be having some issues, and I can't seem to find anything specific with my problem.

(http://u.filepak.com/IkR9_noobery.PNG)

Now I am not sure if the use of TRIGGER ENTER and TRIGGER EXIT is correct?

But basically I am attempting to make it so that when the construction worker runs the sound plays and when he walks the sound stops.

How would I do this? I realise this is the pinnacle of noobery.
Title: Re: Running Sound
Post by: Alex Chouls on April 07, 2012, 11:32:20 PM
How are you moving the construction worker? With Playmaker or a standard script?

TRIGGER ENTER is sent when an object enters a collider setup as a trigger. TRIGGER EXIT is sent when the object leaves the trigger area. I don't think you want those here ;)

Instead you should make custom events in the Events tab. E.g. StartRunning and Stop Running.

Then you have to figure out when to send them. If there is a button used to run you could send StartRunning with Get Button Down and StopRunning with Get Button Up.

Does that make sense?
Title: Re: Running Sound
Post by: Stabby on April 08, 2012, 04:20:47 AM
Well I actually managed to figure it out all by myself (amazing I know).

But very thankful that someone did respond.

Also for all thos other people this is a picture of my end flow chart (I am sure it will be of no use but yus lol)

(http://u.filepak.com/FLKw_3rd_Person_Controller.FSM.png)