1
Programming Questions / Re: 2 Questions
« on: August 15, 2016, 04:37:17 PM »
I don't know how to do what you're talking about. I need to know what to write in order to do it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
you're looking at the wrong postFor #2,
I guess you're using gm8/8.1 since you mention the yuuutu engine. When you die, use the sound_volume function on your current BGM to set the volume to zero, but let it keep playing in the background. Then you can sound_play your death music. On restart, use sound_volume again to turn the music back on. It's a little bit of a complex change if you're not familiar with how the engine tracks the currently playing BGM or where all the scripts are that handle these functions, but otherwise it's as simple as muting the BGM instead of outright stopping it. There's also a sound_fade function you could use if you want the BGM to fade out a little slower instead of an abrupt stop.
For #1 I haven't really looked at the new yuuutu since moving to studio, but if I were in your position I would get a copy of the old engine and compare the player physics code to see if I could spot the differences, particularly where the jump is performed.
As I said, write out the code. How do I do that??
you dont have to write anything, just go where he said and delete the word
For #2,
I guess you're using gm8/8.1 since you mention the yuuutu engine. When you die, use the sound_volume function on your current BGM to set the volume to zero, but let it keep playing in the background. Then you can sound_play your death music. On restart, use sound_volume again to turn the music back on. It's a little bit of a complex change if you're not familiar with how the engine tracks the currently playing BGM or where all the scripts are that handle these functions, but otherwise it's as simple as muting the BGM instead of outright stopping it. There's also a sound_fade function you could use if you want the BGM to fade out a little slower instead of an abrupt stop.
For #1 I haven't really looked at the new yuuutu since moving to studio, but if I were in your position I would get a copy of the old engine and compare the player physics code to see if I could spot the differences, particularly where the jump is performed.