? TMREAD stops working if home button is pressed (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
This website has been moved, please see this post

TMREAD stops working if home button is pressed

  • #1 ✎ 97 ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself 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. Posted
  • #2 ✎ 1130 snail_ Power User QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone 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 ✎ 97 ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself My 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 ✎ 97 ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! 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. Posted Edited by ahavasandwich
  • #5 ✎ 90 HackTheWorlds Second Year My account is over 2 years old Website Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Reading I 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 ✎ 97 ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself Good 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 ✎ 1882 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I 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 ✎ 97 ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself Thanks for the information. I'll check it out during the holiday break next week. Posted