|
Post by kennn on Jan 14, 2020 19:16:14 GMT -6
WindowOpen(0,"Shooooter",WINDOWPOS_CENTERED, WINDOWPOS_CENTERED,960,544,0) 'Window Mode(Small Window) CanvasOpen(0,960,544,0,0,960,544,1) ClearCanvas() Update()
LoadMusic("Various/011.ogg") PlayMusic(-1)
LoadImage(1, "Various/32PixelsSquare15.png") LoadImage(2, "Various/32PixelsSquare02.png") LoadImage(3,"Various/32PixelsSquare54.png") LoadImage(4,"Various/rcbasic_icon.png") LoadFont(1,"Various/Tuffy_Bold.ttf",240) LoadFont(2,"Various/Tuffy_Bold.ttf",45) LoadFont(3,"Various/Tuffy_Bold.ttf",35) LoadFont(4,"Various/Tuffy_Bold.ttf",65) LoadFont(5,"Various/Tuffy_Bold.ttf",40) LoadFont(6,"Various/Tuffy_Bold.ttf",30) LoadFont(7,"Various/Tuffy_Bold.ttf",22) LoadFont(8,"Various/Tuffy_Bold.ttf",28) LoadFont(9,"Various/Tuffy_Bold.ttf",40) SetFontStyle(2, 2) SetFontStyle(3, 2) SetFontStyle(9, 2) SetFontStyle(8, 2) SetWindowIcon(0,3)
'LoadMusic("Various/011.ogg") <--- If I put this command here, SetWindowIcon(0,3) can work 'PlayMusic(-1)
update() Waitkey() End
SetWindowIcon(0,3) does not work in the above code. SetWindowIcon(0,3) can work if I put LoadMusic("Various/011.ogg") in another location mentioned in the above code.
Furthermore, if I don't use ogg file and use a mid file, the above code can work without problem no matter where I put LoadMusic("Various/011.ogg").
|
|
|
Post by n00b on Jan 14, 2020 19:33:46 GMT -6
Could you post a zip file with all your assets and code so I can test it?
|
|
|
Post by kennn on Jan 14, 2020 20:56:46 GMT -6
Could you post a zip file with all your assets and code so I can test it? Hi, Yes! Thanks. Here: ge.tt/6LhSFh03(The file name is try05.zip )
|
|
|
Post by n00b on Jan 15, 2020 10:44:10 GMT -6
kennn I just tried this out and it works just fine for me on linux. Are you on Windows or Mac?
|
|
|
Post by johnno56 on Jan 15, 2020 13:20:03 GMT -6
I tried it on my Linux machine, with the sound at the top of the listing then at the bottom, and both times it ran just fine... Slightly creepy music... But ran just fine...
J
|
|
|
Post by kennn on Jan 15, 2020 21:51:33 GMT -6
n00b, Thanks! The code did not work on the first computer. I tried on the second computer and the code worked. Perhaps there is a hardware problem on the first computer. Both computers are Windows computers.
johnno56, Thanks for testing!
|
|