I Wanna Be The Forums!

Please login or register.

Login with username, password and session length
Advanced search  

News:

Gaiden 1.2 patch released. Click here to download!

Author Topic: Music not restarted after death/room changing.  (Read 2735 times)

Ario147

  • Newbie
  • *
  • Posts: 44
  • You wanna be me? ;)
    • View Profile
Music not restarted after death/room changing.
« on: January 29, 2013, 04:34:33 pm »

How to make music not restarting after deaths and room changing? Because everybody think, that fangames with not restarting music are so much better.
Logged
What i beat:
I wanna be the Guy.
I wanna be the Fangame.
I wanna be the Boshy.
I wanna be the Retro.
I wanna be the Guy:Gaiden.
I wanna be the Galaxy.
I wanna be the World.
I wanna be the Sublime. (8===>)
I wanna be Easy.
I wanna kill the guy. (v0.52)
I wanna be the Shrine Maiden.
I wanna be the King.
I wanna be the Computer.
I wanna be the Greeeen.
I wanna be the Diverse.
I wanna be the Revolution.

YoSniper

  • Hero Member
  • *****
  • Posts: 706
  • Code blooded. Check it and see.
    • View Profile
    • My YouTube channel
Re: Music not restarted after death/room changing.
« Reply #1 on: January 29, 2013, 04:43:46 pm »

I'm sure it has something to do with supersound.dll.

In my engine, the music doesn't restart by merely pressing R, but it does if you die.
Logged
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.

Kinata

  • Full Member
  • ***
  • Posts: 223
  • What, we're supposed to play games for FUN?
    • View Profile
Re: Music not restarted after death/room changing.
« Reply #2 on: January 29, 2013, 11:18:22 pm »

Would it be possible to create this effect if you don't have death music (which is unnecessary IMO)?
Logged
Disclaimer:

This author is not responsible for any headaches, frustration, blindness, high blood pressure, or suicides resulting from this post.

Read at your own risk.

Berry Punch

  • Kitty's BFF
  • Sr. Member
  • ****
  • Posts: 373
  • 40 proof noggererer.
    • View Profile
Re: Music not restarted after death/room changing.
« Reply #3 on: January 30, 2013, 01:42:43 am »

In all honesty, the reason why everything resets is because the game reloads the room and all the objects in it; noticed how the lag from blood particle effects (as objects at least) is ridiculous? Yeah, that's why you need to reload the room.

It is possible, you just need to recreate the player at the savepoint upon pressing R, checking to see if there's a player already in existence, and if there is one just move it to the savepoint location instead of destroying/creating it. Then you wouldn't have that problem with the music resetting.

As for the death music, you can just cut that out, have it say game over (as an object), and then when you press R respawn the player and destroy the game over object.

The problem with a lot of this though is that some rooms need to be reset, like when you need to run to the right and escape some blades or something coming behind you. If you die then, you'd have to check the room and reset the room or just the player accordingly so you don't get stuck behind things.
Logged
Download this [ABANDONED] shit that nobody cares about: I wanna be PHAT!