GM: Studio - Background Music & Toggle

  Рет қаралды 9,437

Ben Katz

Ben Katz

Күн бұрын

Пікірлер: 32
@gabehockin2991
@gabehockin2991 8 жыл бұрын
Thank you so much been trying to find this tutorial for ages.
@RedstoneBen
@RedstoneBen 8 жыл бұрын
Send me your game when it's done!
@gabehockin2991
@gabehockin2991 8 жыл бұрын
Its Currently on steam greenlight and Newgrounds but its still under development. I will put a link in the comment when ive updated the game.
@EBLITZR
@EBLITZR 8 жыл бұрын
@talnakar1432
@talnakar1432 8 жыл бұрын
I dont the reason wht but it worke just for the 2 first rooms, so i used the room start and end event to pause and resume the music, but thx for the tut m8, it was kind of help. Also, subbed fot u, so pls keep with the GameMaker tuts!
@JoshuaEfron
@JoshuaEfron 4 жыл бұрын
This is great. Thank you.
@EBLITZR
@EBLITZR 8 жыл бұрын
Thank's for helping me out bro... Subbed
@CRogers2013
@CRogers2013 8 жыл бұрын
6:03 for those of you who just want to get into the sound.
@gursegugu
@gursegugu 8 жыл бұрын
just what i needed thanks
@rosaarroyoa9897
@rosaarroyoa9897 7 жыл бұрын
How can I be able to make the background music fade out for the other background music for when I confront a boss in a current level and, after I defeated a boss, make the music fade back to the music of the current level? I use Game Maker 8.0 Lite, but I'm a beginner.
@owez7113
@owez7113 8 жыл бұрын
Thanks so much :D
@RedstoneBen
@RedstoneBen 8 жыл бұрын
No problem! If you have any other suggestions for video tutorials go ahead and ask!
@owez7113
@owez7113 8 жыл бұрын
if you still use game-maker, it would be quite cool if you done a tutorial on score systems! I'm making a arcade game that's endless and I need a time score but no-one has done it yet
@chevalarloveone2515
@chevalarloveone2515 7 жыл бұрын
moving back between main menu and scene while music is in doubles the music so i have two of the same songs playing , how to fix? and great tutorial!
@RedstoneBen
@RedstoneBen 7 жыл бұрын
When re-watching this tutorial I noticed I did not make it clear that this setup is mainly for only having the music toggle on the main menu. If you would like the button to be on all levels (and not to double, like with your game) you must create a duplicate of the obj_music object. In this duplicate, remove the "audio_play_sound" line of code from the create event. Leave the original object in your main menu room, and place only the new duplicate object in each level.
@chevalarloveone2515
@chevalarloveone2515 7 жыл бұрын
Ah! thanks very much! helped alot!
@BossAleks123
@BossAleks123 3 жыл бұрын
i need this but in game maker studio 2 HERELLPP
@markjosephpanganiban5662
@markjosephpanganiban5662 6 жыл бұрын
thanks
@tjas2
@tjas2 8 жыл бұрын
Thank you so much! I appreciate you! :) obj_music ---------------------------- CREATE EVENT: ---------------------------- global.music = 1; image_speed = 0; audio_play_sound(sound1,0,1); _________________________________ BUTTON PRESSED EVENT: ------------------------------------------------------ //Pause if global.music = 1{ audio_pause_sound(sound1); image_index = 1; } //Resume if global.music = 0{ audio_resume_sound(sound1); image_index = 0; } //Switch global.music [ON/OFF] global.music = !global.music; ___________________________________________ Make sure you have SPRITE in 2 images inside (like animation)
@nutridrink7737
@nutridrink7737 7 жыл бұрын
Hello. I found a problem with it. If you mute the music and go to another room, and come back to main menu, the image index will reset. How to keep it on the mute stance?
@RedstoneBen
@RedstoneBen 7 жыл бұрын
Is it just the image index that is resetting? Or the state of the music (play/pause)? It's most likely because you aren't making the object/room persistent.
@nutridrink7737
@nutridrink7737 7 жыл бұрын
Thank you it worked! (sorry i wasn't at home, also thx for the fast answer)
@Boshyson
@Boshyson 8 жыл бұрын
Searched a tut and found my classmate lmao
@ffffffuuuuuuu
@ffffffuuuuuuu 8 жыл бұрын
Bonjour :) I would like someone to help me with someting. How do I switch music between rooms and start it where I left it over when I go back? ------------------------------------------------------------------------------------------------------------------------------ -ex: I enter room #1 = music1, immediately starts playing. *I switch room* -- *Music1 is at 25.3 seconds* I enter room #2 = music2, immediately starts playing. *I switch room* -- *Music2 is at 2.1 seconds* I enter room #1 = **I want music1 to start from 25.3s** *I switch room* I enter room #2 = **I want music2 to start from 2.1s** etc.... ------------------------------------------------------------------------------------------------------------------------------ I tried doing something like this inside the step event of some object: if(keyboard_check_pressed(ord('N'))) { if(room = rm_game) { audio_pause_sound(snd_music1) audio_resume_sound(snd_music2) } else { audio_pause_sound(snd_music2) audio_resume_sound(snd_music1) } } ------------------------------------------------------------------------------------------------------------------------------------- but it doesn't work for some reason. Anyone have a clue?
@enrikovalanec2930
@enrikovalanec2930 8 жыл бұрын
man i have problem, this only works when i want to mute the music when i press it again it wont unmute and continue it just get stuck in mute
@RedstoneBen
@RedstoneBen 8 жыл бұрын
Can you send me your project file?
@enrikovalanec2930
@enrikovalanec2930 8 жыл бұрын
yeah sure we.tl/ff879UgGes
@RedstoneBen
@RedstoneBen 8 жыл бұрын
You have to send me the GMZ file. (File > Export Project)
@petan0120
@petan0120 3 жыл бұрын
Sorry maybe I am retarded, but everytime, when I go out of the menu (where is the obj_music) to some other room and then I go back to menu, the music starts again, so the music is playing two times, and if I turned music off in menu, then go to other room and then go back to menu it will play again... When i duplicate obj_music and remove the line of code (audio_play_sound) and give it to other rooms, it will not change anything for me... Can you please help me? Sorry for my painfully english.
@elian3151
@elian3151 7 жыл бұрын
The code doesnt work at my game, it keeps saying error and stuff
@thedurpachu
@thedurpachu 7 жыл бұрын
Thatmen00 the code changed from audio_play_sound to just sound_play. Same for other sound commands
@boztepemustafa
@boztepemustafa 7 жыл бұрын
YOUUR PROJECT FİLE LİNK PLASEE
Game Maker Enemy Health Bar How to make
4:44
BrittonTutorials
Рет қаралды 54 М.
One CPU To Rule Them All - Ryzen 7 9800X3D Review
12:47
Linus Tech Tips
Рет қаралды 1,1 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 109 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 57 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 118 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 11 МЛН
GMWolf - Simple Lighting effect in Gamemaker
27:03
GM Wolf
Рет қаралды 34 М.
GameMaker - Introduction to Shaders
8:33
Sara Spalding
Рет қаралды 122 М.
Game Maker Tutorial: Cutscenes
11:35
RealTutsGML
Рет қаралды 41 М.
GameMaker Studio - Dropdown Menu Component
13:55
GravityShift Games
Рет қаралды 12 М.
Purple BitFenix Shinobi Mod
10:56
Ben Katz
Рет қаралды 582
How to Make a HUGE Dome in Minecraft!
18:49
Ben Katz
Рет қаралды 85 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 109 МЛН