Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
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
KARTOONCHRIS


Newbie


Joined: 16 Feb 2004
Posts: 23

Posted: 16 Feb 2004 09:17:54 pm    Post subject:

ok, im making this game where you are a bus driver and your goal is to runover as many people as possible in the time alloted. ok your at the bottem and you move the bus left and right while the people come down from the top to give the impression that the bus is moving. how would you make the people move down the screen without using a continous loop. also how would you make the timer without a loop. pleez reply!! its urgent!!

PS i have a ti-83 plus se


Last edited by Guest on 16 Feb 2004 09:25:28 pm; edited 1 time in total
Back to top
Bluefire


Member


Joined: 18 Jan 2004
Posts: 186

Posted: 16 Feb 2004 09:25:17 pm    Post subject:

y+1->Y somewhere in the programming if u use outputs somewhere or pt-ons
[EDIT] assuming y is the up/down variable used

for the timer i suggest u look at The timer thread


Last edited by Guest on 16 Feb 2004 09:30:04 pm; edited 1 time in total
Back to top
Justin W.
Shattered Silence


Advanced Member


Joined: 24 May 2003
Posts: 429

Posted: 16 Feb 2004 09:30:25 pm    Post subject:

KARTOONCHRIS wrote:
ok,  im making this game where you are a bus driver and your goal is to runover as many people as possible in the time alloted. ok your at the bottem and you move the bus left and right while the people come down from the top to give the impression that the bus is moving. how would you make the people move down the screen without using a continous loop. also how would you make the timer without a loop. pleez reply!! its urgent!!

PS i have a ti-83 plus se

Ummm. To do continuous movement, you would need a loop of one type or another.
Back to top
Bluefire


Member


Joined: 18 Jan 2004
Posts: 186

Posted: 16 Feb 2004 09:32:47 pm    Post subject:

yah hes right, u do need a loop of one type or another probably add that right before a getkey loop


Code:
:Lbl 21
:y+1->y
:<entire getkey loop>
:goto 21


Last edited by Guest on 16 Feb 2004 09:37:03 pm; edited 1 time in total
Back to top
KARTOONCHRIS


Newbie


Joined: 16 Feb 2004
Posts: 23

Posted: 16 Feb 2004 09:33:45 pm    Post subject:

yeah i know but i use like this

: 19->A
: -17->b
: lbl 1
: pt-off(A,B
: Pt-on(A,b
: for(C,1,500
: end
: B-1->b
: goto 1

how can i make it do the same thing but with out using goto or label because its a continous loop and i cant make the bus move. pleez help send a code


Last edited by Guest on 16 Feb 2004 09:39:48 pm; edited 1 time in total
Back to top
Bluefire


Member


Joined: 18 Jan 2004
Posts: 186

Posted: 16 Feb 2004 09:35:41 pm    Post subject:

RTFM all u have to use is that inside a getkey loop (i think im right cause if im not i sound like an idiot and will delete this post)
Back to top
KARTOONCHRIS


Newbie


Joined: 16 Feb 2004
Posts: 23

Posted: 16 Feb 2004 09:42:04 pm    Post subject:

sorry im kinda new, wat do you mean getkey loop?
Back to top
Fr0sty


Member


Joined: 27 Nov 2003
Posts: 202

Posted: 16 Feb 2004 10:14:01 pm    Post subject:

Or you could try

While 1
Getkey->A
If A
Then
<Action>
Else
<Action>
End
End

That's the faster equivalent to a Lbl Goto loop (at least I think it's faster).
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 17 Feb 2004 07:49:04 am    Post subject:

47->A
31->B
Repeat K=45 //keep playing until player presses clear key
getKey->K //store which key is used in K
//if player presses a key, erase player so he doesn't leave a trail on the screen:
If Ans:Text(B,A," " //6 spaces
A+(K=26)-(K=24->A //move player horizontally
B+(K=34)-(K=25->B //move player vertically
Text(B,A,"X //draw player
End
Back to top
KARTOONCHRIS


Newbie


Joined: 16 Feb 2004
Posts: 23

Posted: 17 Feb 2004 11:32:35 am    Post subject:

hey thanx
Back to top
Ray Kremer


Member


Joined: 16 Feb 2004
Posts: 237

Posted: 17 Feb 2004 02:39:23 pm    Post subject:

http://tifaq.web1000.com/?p1.htm#1.4.3
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 GMT - 5 Hours

 

Advertisement