Author Topic: sound loop  (Read 1598 times)

Junior Nintendista

  • Guest
sound loop
« on: April 03, 2015, 08:25:52 AM »
How do the music continue when the player dies?

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 36.0 Firefox 36.0
    • View Profile
  • Playstyle: Keyboard
Re: sound loop
« Reply #1 on: April 03, 2015, 09:21:35 AM »
If you're using yuuutu engine:

In the playMusic Room Start Event:

if (BGM!=0) { if !sound_isplaying(BGM) { sound_loop(BGM) } }

(click to show/hide)

In the creation code (this is set in the room) make BGM = <background music you want to loop>

(click to show/hide)

Junior Nintendista

  • Guest
Re: sound loop
« Reply #2 on: April 04, 2015, 04:12:04 PM »
It did not work, the music still repeating when I die.
« Last Edit: April 04, 2015, 04:42:16 PM by Junior Nintendista »

kilgour22

  • Cherry Eater
  • Posts: 82
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 37.0 Firefox 37.0
    • View Profile
  • Playstyle: Keyboard
Re: sound loop
« Reply #3 on: April 05, 2015, 12:52:22 PM »
There's a thread for this already in game design. Find it and it will answer your question.
Don't let a spike ruin your day.

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Linux Linux
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: sound loop
« Reply #4 on: April 05, 2015, 05:43:57 PM »