Implemented Music Looping
Contra is Back! » Devlog
Game music looping has been implemented.
To make sure music has an intro part and a looping part working together, there are a few things required:
- the music with intro needs to be cut, so that an intro clip can be played once and the looping clip can be played with looping turned on
- use a coroutine to delay the looping clip, and don't use PlayDelayed, otherwise when pausing the game using timescale = 0, it doesn't delay, so the game would be buggy if you pause at the time the intro is playing
- make sure when playing music, the first thing is to stop the current coroutines. If you need to stop a particular one, you need to store the reference in advance, otherwise just run StopAllCoroutines() on a MonoBehaviour
- there is a unity plugin called introloop, which is supposed to do the job without cutting if you have a bit of money to spend
- I tried to write some code to do so, and it turned out to be quite challenging, and I'm not sure about spending future time to maintain some Unity low level implementation
If you are using FMod, then just do the below:
References:
Get Contra is Back!
Download NowName your own price
Contra is Back!
Full remake of Contra Super C in 3D, 4 players local co-op
Status | Released |
Author | Mingzilla |
Genre | Platformer, Action, Shooter |
Tags | 3D, Co-op, Local Co-Op, Local multiplayer, Multiplayer, Remake |
Languages | English |
More posts
- Contra is Back - (Contra 3D Full Remake) - Level 8 Game PlayOct 13, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 7 Game PlayOct 02, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 6 Game PlaySep 27, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 5 Game PlaySep 23, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 4 Game PlaySep 19, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 3 Game PlaySep 15, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 2 Game PlaySep 10, 2022
- Contra is Back - (Contra 3D Full Remake) - Level 1 Game PlaySep 07, 2022
- Contra is Back - Released!Aug 17, 2022
- Unity - add sound when navigating menuAug 14, 2022
Leave a comment
Log in with itch.io to leave a comment.