#1✎ 97ahavasandwichZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPokemon Is Awesome!I love Pokemon!Express YourselfMinecraft Is Awesome!I love Minecraft!Express YourselfI noticed that TMREAD stops working after the home button is pressed. This will be a problem if someone tries to take a miiverse screenshot of a game that uses this command.
Posted
#2✎ 1130snail_Power UserQSP Contest 1 Contest ParticipantI participated in the first SmileBASIC Source QSP Contest!HelperReceived for being very helpful around SmileBASIC SourceAchievementsAmazing ContributorSomeone thinks I'm an awesome person who has done so much for the community!Achievements
I noticed that TMREAD stops working after the home button is pressed. This will be a problem if someone tries to take a miiverse screenshot of a game that uses this command.
Could you please provide a reproduceable example? I can't make this test code break.
Posted
Edited
by randomous
#3✎ 97ahavasandwichZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPokemon Is Awesome!I love Pokemon!Express YourselfMinecraft Is Awesome!I love Minecraft!Express YourselfMy apologies. I should have added some code. :P
I was using the code below for a timer as part of the WarioWare project thing.
TMREAD TIME$ OUT H_I,M_I,S_I
TIME_I=(H_I*3600)+(M_I*60)+S_I
@LOOP
TMREAD TIME$ OUT H_F,M_F,S_F
TIME_F=(H_F*3600)+(M_F*60)+S_F
TOTAL_TIME=TIME_F-TIME_I
?TOTAL_TIME,TIME,F-TIME_I
The total time shouldn't go higher than 3 based on some timer reset code.
Posted
#4✎ 97ahavasandwichZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPokemon Is Awesome!I love Pokemon!Express YourselfMinecraft Is Awesome!I love Minecraft!Express YourselfI just figured out the problem.This timer uses the system clock by first establishing an initial time and then some final time. The problem with this is that the clock is still running when you pause via the home screen. I think I’ll go back to using old fashion CNT=CNT+1 timers.
Posted
Edited
by ahavasandwich
#5✎ 90HackTheWorldsSecond YearMy account is over 2 years oldWebsiteSummer 2016 Contest ParticipantI participated in the SmileBASIC Source Summer 2016 Contest!Programming ContestReadingI like to read books!Hobbies
Woah, didn't know you could do that with FORMAT. Multiple variables huh? Very useful.
I just figured out the problem.This timer uses the system clock by first establishing an initial time and then some final time. The problem with this is that the clock is still running when you pause via the home screen. I think I’ll go back to using old fashion CNT=CNT+1 timers.
Yes unfortunately time won't stop just for your timer lol. You can actually use this as a clever way to find out when somebody has opened their 3ds or pressed the home button.
Posted
Edited
by randomous
#6✎ 97ahavasandwichZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPokemon Is Awesome!I love Pokemon!Express YourselfMinecraft Is Awesome!I love Minecraft!Express YourselfGood idea. I'll create some code that prevents cheating by pausing with the home button. I'm turning into a Mr. Resetti. Some good came out of this. XD
Posted
#7✎ 188212Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express Yourself
I just figured out the problem.This timer uses the system clock by first establishing an initial time and then some final time. The problem with this is that the clock is still running when you pause via the home screen. I think I’ll go back to using old fashion CNT=CNT+1 timers.
Wait, you can just use MAINCNT instead.... (or MILLISEC now)
Posted
#8✎ 97ahavasandwichZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPokemon Is Awesome!I love Pokemon!Express YourselfMinecraft Is Awesome!I love Minecraft!Express YourselfThanks for the information. I'll check it out during the holiday break next week.
Posted