• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How to script to add sound to certain sprites?

T

Taran Basi

Guest
I am using these sprites and objects for my game and this is for my game menu:

New game
How to play
Options
Credits
Exit

Back
Fullscreen mode
Mute/Unmute


I want to apply a sound effect to all those sprites I mentioned above, but is there a way I can do it in a script? I am not a scripter and I don't know anything about scripting, and when I just add 'play sound' actions for each sprite they lag the game.

So is there a script I can use to program those sprites to play a sound when any of them is clicked? Plus I need an answer as soon as possible because this is part of my BTEC extended diploma course
 
G

gibberingmouther

Guest
just look in the manual under game assets.

audio_play_sound(index, priority, loop);
 
Top