Gedalya Posted September 27, 2023 Share Posted September 27, 2023 I am trying to put some blinking text on screen but I am not sure where to begin. Can someone provide a general example or point me to a good reference? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
LordKraken Posted September 27, 2023 Share Posted September 27, 2023 Quote showText(GetTimeInSec() % 2) Very generic way of making blinking text. Adjust showText to you lib/framework. 1 Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 27, 2023 Author Share Posted September 27, 2023 1 hour ago, LordKraken said: Very generic way of making blinking text. Adjust showText to you lib/framework. Thank you! I am writing in BASIC and getting a compile error with that code, is that C perhaps? Quote Link to comment Share on other sites More sharing options...
Clint Thompson Posted September 27, 2023 Share Posted September 27, 2023 More context as to what it’s for specifically? You could easily use CLS (to clear screen text) then print text loop with timer if it’s something like a “press start” text or similar 1 Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 27, 2023 Author Share Posted September 27, 2023 30 minutes ago, Clint Thompson said: More context as to what it’s for specifically? You could easily use CLS (to clear screen text) then print text loop with timer if it’s something like a “press start” text or similar Yes exactly! It is for the title screen for "Start". Sorry for the lack of information, I wasn't sure what to put. Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 27, 2023 Author Share Posted September 27, 2023 4 hours ago, Clint Thompson said: More context as to what it’s for specifically? You could easily use CLS (to clear screen text) then print text loop with timer if it’s something like a “press start” text or similar Thank you for your help. How would I go about implementing a timer? Rather, is there a function I can use? And a completely unrelated question, is there no modulus operator? I tried X Mod Y in BASIC but it doesn't appear to work. Quote Link to comment Share on other sites More sharing options...
LordKraken Posted September 28, 2023 Share Posted September 28, 2023 12 hours ago, Gedalya said: Thank you! I am writing in BASIC and getting a compile error with that code, is that C perhaps? Well it was more some kind of pseudo code. I don't know how to get a timer in basic but iirc (haven't use it in 2 years) Raptor probably offers a tick/frame counter of some sort you could use for that purpose. 1 Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 28, 2023 Author Share Posted September 28, 2023 7 hours ago, LordKraken said: Well it was more some kind of pseudo code. I don't know how to get a timer in basic but iirc (haven't use it in 2 years) Raptor probably offers a tick/frame counter of some sort you could use for that purpose. Thank you! Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 28, 2023 Author Share Posted September 28, 2023 Anyone know if there is a modulus operator when using BASIC in JagStudio? I tried X Mod Y in BASIC but it doesn't appear to work. Quote Link to comment Share on other sites More sharing options...
Gedalya Posted September 28, 2023 Author Share Posted September 28, 2023 Never mind, I believe it is % curiously. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.