This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
cssc


Newbie


Joined: 04 Jan 2008
Posts: 36

Posted: 04 Mar 2010 01:52:14 am    Post subject:

Hey all,

I just need some quick help with regards to scrolling a string across the screen I'm attempting to make a "dodge the * game" where the player is confined to the bottom line of the homescreen while a string full of stars scrolls down screen and the user tries to dodge. I have the scrolling code down, I've used it to make a frogger-like game. But my issue is, I can only scroll the string so that things appear to be moving upward. How do I make the string scroll down the screen?

My basic code for scrolling is


Code:
1 -> A
Repeat 0
Output(1,1,sub(Str1,A,128
A+16-128(A=257 ->A                    \\ The numbers here are because I have 128 space characters appear first to prepare the user
End


Any help would be appreciated! Thanks a lot
Back to top
Graphmastur


Advanced Member


Joined: 25 Mar 2009
Posts: 360

Posted: 04 Mar 2010 05:46:54 pm    Post subject:

Changing A+16 to A-16 should work. Be sure to change the code that wraps it back to the beginning.

Last edited by Guest on 04 Mar 2010 05:48:14 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement