Fangames > Programming Questions
game maker help
infern0man1:
--- Quote from: Rpup on December 04, 2013, 05:14:16 PM ---Hi, sorry about that. Here is the code I menuselect code that i changed
--- Code: ---//カーソル移動
if(keyboard_check_pressed(global.leftbutton) == true){
sound_play(sndJump);
select -= 1;
if(select < 1){
select = 3;
}
}else if(keyboard_check_pressed(global.rightbutton) == true){
sound_play(sndJump);
select += 1;
if(select > 3){
select = 1;
}
}else if(keyboard_check_pressed(global.jumpbutton) == true){
global.savenum = select;
room_goto(sampleroom04);
}
--- End code ---
I was also wondering how to play music with the play music icon. I dont want to play music from the game maker event because I dont want it to keep repeating. I read an earlier topic about this and it said to type if !sound_isplaying(song) { sound_loop(song); } on the creation code
Only problem is this is the code for the music player
--- Code: ---//音楽を鳴らす
/**
詳しくは、Roomに配置されているplayMusicを
Ctrl押しながら右クリックをして
「CreationCode vを選択して中を覗いて下さい。
そこで、再生するSoundが宣言されています。
**/
--- End code ---
so im not really sure how to get my track playing with that code
Thanks
--- End quote ---
First off, yuuutu edition originally leads to rSelectStage. From there you hop into a portal, which then saves your game afterwards.
alternatively, use menuSelect2. it doesn't require rSelectStage
for playMusic, the code stated is a bunch of broken-japanese characters that was used to help explain what to do originally. Don't do anything within the object. Just place it in the room and either ctrl+right click or just right click the playMusic object. then, in the object's creation code, use the if !sound_isplaying(...){sound_loop(...);}
Hope this helps
Rpup:
thanks, that really helps =D
Rpup:
what should i add to this code to lower the music volume?
--- Code: ---if !sound_isplaying(track01) { sound_loop(track01); }
--- End code ---
lemonxreaper:
edit the audio with an external program such as audacity. really though a lot of what you are asking is gamemaker basics. I advice you look up a tutorial or read the manual. asking for help for specific things is understandable. but you cant ask for help at every turn.
Rpup:
='( sorry
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version