gametechmods
Robot Arena => General Support => Topic started by: Badnik96 on November 01, 2009, 08:56:03 AM
-
does anyone kow how to make music play during a match like in AU's Battlebox?
I 'd like to know.
-
I had an Idea to replace the "here we go" with a music.wav data.
don`t know if there`s another option
-
I remember ACAMS playin' some Texas Cowboy Music
-
(Somewhere this was posted, but I just found stuff and pasted it all in here...)
Yep, Duck...
Badnik: Here, gitter dun yerself!:
def __init__(self):
[COLOR=black][COLOR=blue]self.StartMusicTimer = 0[/COLOR][/COLOR]
[COLOR=black]def HazardsOn(self, on):[/COLOR]
[COLOR=black][COLOR=blue]self.game_music = plus.createSound("Sounds/[COLOR=seagreen]BalladOfJedClampet[/COLOR].wav", False, (0,0,0))[/COLOR][/COLOR]
[COLOR=black]def __del__(self):[/COLOR]
[COLOR=blue]plus.stopSound(self.game_music)[/COLOR]
[COLOR=blue]plus.removeSound(self.game_music)[/COLOR]
[COLOR=black]Arenas.SuperArena.__del__(self)[/COLOR]
[COLOR=black]def Tick(self):[/COLOR]
[COLOR=blue]if self.StartMusicTimer <= 20:[/COLOR]
[COLOR=blue] self.StartMusicTimer += 1[/COLOR]
[COLOR=blue]if self.StartMusicTimer == 20: # This number dictates when music will start.[/COLOR]
[COLOR=blue] plus.loopSound(self.game_music)[/COLOR]
--------
Or here it is already dun did: MusicBoxArena (http://www.madiaba.gametechmods.com/MusicBoxArena.rar)
--------
(previously posted, but useful example:) Here's some juicy video secretly taken in ACAMS' backyard: Paparazzi Exclusive! (http://www.madiaba.gametechmods.com/VIDS/ACAMS_JIG.wmv)
-
Lesson learned:
Don't piss off ACAMS while he is dancing.