playMaker

Author Topic: Music on level load  (Read 1177 times)

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
    • View Profile
Music on level load
« on: July 01, 2016, 07:53:29 AM »
i have a music track that loops and i use it for my game.

It starts in my main menu and loop.

The music continue from last point when I load into the next scene.

But when i am in my game over scene, and i go back to my main menu, the track is still playing, but another one start. So i have 2 audio music in my main menu.

How can i block the second audio?

thanks :)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Music on level load
« Reply #1 on: July 01, 2016, 09:13:14 AM »
You can use the Audio Stop action before your Audio Play so it will stop the current music playing.
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
    • View Profile
Re: Music on level load
« Reply #2 on: July 02, 2016, 07:22:14 AM »
So what do i want, is to play my music track when i start my game (the track loops), but when i go back into my main menu, i don't want to add another music track.

How can i fix that?

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
    • View Profile
Re: Music on level load
« Reply #3 on: July 03, 2016, 01:26:24 PM »
what i want is like starting my music track to play (and loop), when my application start.

Can i do that in playmaker?