playMaker

Author Topic: Running Sound [SOLVED]  (Read 2385 times)

Stabby

  • Playmaker Newbie
  • *
  • Posts: 2
Running Sound [SOLVED]
« 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.



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.
« Last Edit: April 08, 2012, 12:09:49 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Running Sound
« Reply #1 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?

Stabby

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Running Sound
« Reply #2 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)