Author Topic: Making music not restart  (Read 6610 times)

Hectorpaddy

  • Spike Dodger
  • Posts: 135
  • Do you even Hexa Corner?
    • View Profile
  • Playstyle: Gamepad
Making music not restart
« on: June 24, 2013, 08:38:29 AM »
Hey guys, I was just wondering what I have to do to to make the music not resetting, because I can't really figure it out on my own.
Hector, the dropping knowledge.

Sephalos

  • Spike Dodger
  • Posts: 228
    • View Profile
  • Playstyle: Gamepad
Re: Making music not restart
« Reply #1 on: June 24, 2013, 08:57:13 AM »
Hey guys, I was just wondering what I have to do to to make the music not resetting, because I can't really figure it out on my own.
What engine are you using?

If you're using Yuutu go in the room editor and right click the music object and click creation code. Then enter something similar to this:
if !sound_isplaying(song) { sound_loop(song); }

Then in the scripts folder and find killPlayer
Find and remove this line of code: sound_stop_all();
And change the line sound_play(sndOnDeath); to sound_play(sndDeath);
In the "world" object find the "Press-R" event and remove the line sound_stop_all();

Hope this helps
« Last Edit: June 25, 2013, 07:15:39 AM by Sephalos »

Hectorpaddy

  • Spike Dodger
  • Posts: 135
  • Do you even Hexa Corner?
    • View Profile
  • Playstyle: Gamepad
Re: Making music not restart
« Reply #2 on: June 24, 2013, 01:02:01 PM »
Thank you a lot, i suggested it have to change something in playerkill, I just didn't know what.
Hector, the dropping knowledge.

lemonxreaper

  • Administrator
  • Spike Dodger
  • Posts: 222
  • Do you even needle?
    • View Profile
Re: Making music not restart
« Reply #3 on: June 25, 2013, 07:08:09 AM »
dont you also have to go into the press R event in the player and remove the same line of code?
Just pretend I have a cool picture like Zero.
Completed Fangames: httpss://dl.dropboxusercontent.com/u/4678222/Complete%20Fangames.txt

Sephalos

  • Spike Dodger
  • Posts: 228
    • View Profile
  • Playstyle: Gamepad
Re: Making music not restart
« Reply #4 on: June 25, 2013, 07:14:30 AM »
dont you also have to go into the press R event in the player and remove the same line of code?
Oops, yeah I totally forgot.
I'll edit my post

LoLGamer CCC

  • Wannabe
  • Posts: 32
  • see your world through my eyes
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 34.0.1847.131 Chrome 34.0.1847.131
    • View Profile
  • Playstyle: Keyboard
Re: Making music not restart
« Reply #5 on: May 25, 2014, 12:31:51 PM »
Not working. :atkCry:
Working on my new project:I Wanna Be The Donald 3!

ChillingSpark

  • Wannabe
  • Posts: 28
  • tear it tear it tear it tear it tear it tear it
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Chrome 35.0.1916.114 Chrome 35.0.1916.114
    • View Profile
    • Steam account
  • Playstyle: Gamepad
Re: Making music not restart
« Reply #6 on: May 26, 2014, 07:00:15 AM »
CoolCat

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 29.0 Firefox 29.0
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Making music not restart
« Reply #7 on: May 26, 2014, 11:17:48 AM »
Lolgamer, I recommend you start a new thread giving us the details of your problem, such as which engine you're using, changes you've made to the code, and what exactly is happening. That way, we can help fix your problem without cluttering other threads :atkHappy: