プレイ日記
Nicky G.M. cooltyler1234
Can somone help me? I made a BGM Player that works perfectly fine when I run it manually using "RUN" in Direct Mode but when I enter the BGM number when I open the program using the File Viewer it crashes and sends me to the SmileBASIC menu. What am I doing wrong?
0そうだね
プレイ済み
返信[1]
親投稿
Nicky G.M. cooltyler1234
Maybe It's because my battery light is flashing red and about to die
0そうだね
プレイ済み
返信[2]
親投稿
Nicky G.M. cooltyler1234
what happens when run manually: *plays BGM*
0そうだね
プレイ済み
返信[3]
親投稿
Nicky G.M. cooltyler1234
what happens when I use File Viewer to execute my program *crashes but first plays 1 note of the BGM*
0そうだね
プレイ済み
返信[4]
親投稿
Perska Perska02
It's not crashing, it's that the program runs out of code to be run, deciding to go to the Top Menu. If you want the BGM player thing to not close after running it, put a DIALOG or a infinite loop or smth. By the way, why are you making a program that plays the built-in BGM? The SMILE Tool already does that.
2そうだね
プレイ済み
返信[5]
親投稿
Nicky G.M. cooltyler1234
because its the first fuction of my new OS (:
1そうだね
プレイ済み
返信[6]
親投稿
Nicky G.M. cooltyler1234
how do I make it loop, or could you show me an example of how to make it work, the screenshot is the code written, theres more at the top but thats just the @BOOTUP
0そうだね
プレイ済み
返信[7]
親投稿
That is literally the most efficient programming in SmileBASIC I've ever seen, try this: WHILE 1 INPUT "(...)",BGM IF !(BGM>42||0>BGM) THEN BREAK WEND BGMPLAY BGM WHILE 1:WEND
0そうだね
プレイ済み
返信[8]
親投稿
Nicky G.M. cooltyler1234
thanks
0そうだね
プレイ済み
返信[9]
親投稿
*inefficient
0そうだね
プレイ済み
返信[10]
親投稿
Nicky G.M. cooltyler1234
well you dont have to be mean about it, jeez i can do it my way
0そうだね
プレイ済み