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.

TI-Basic => TI-BASIC
 » Goto page Previous  1, 2
Author Message
Darth Android
DragonOS Dev Team

Bandwidth Hog

Joined: 31 May 2003
Posts: 2104

 Posted: 25 Feb 2004 01:16:52 am    Post subject: yes, and be more specific on what you want than "pleez help". help with what? also... above your posts there are several buttons (quote,report,delete,etc.). one of them is edit. can you guess what it does? thats right! it lets you modify your posts so you dont have to post right after yourseft (double post)!
tyskis

Member

Joined: 20 Nov 2003
Posts: 238

 Posted: 25 Feb 2004 08:04:11 am    Post subject: Easy on the guy, not that we lose another member But the doubleposting is really annoying...
Arcane Wizard
`semi-hippie`

Super Elite (Last Title)

Joined: 02 Jun 2003
Posts: 8993

 Posted: 25 Feb 2004 08:16:08 am    Post subject: KARTOONCHRIS wrote:ok i got the random ball thing but how do you use hit detection for the paddle? 8->X //paddle's position 8->A //ball x position 4->B //ball y position Repeat K=45 getKey->K If Ans:Output(8,X," X+(Ans=26 and X<16)-(Ans=24 and X>1->X //move ball If B=8:Then If A=X:Then //ball hits paddle! //ball hits paddle bounce code Else //ball doesn't hit paddle! //ball doesn't hit paddle game over code End End Output(B,A,"O Output(8,X,"= End Full game code: 8->X //paddle's position 8->A //ball x position 4->B //ball y position 1->D //ball direction: 1=up, 2=up+right 3=down+right 4=down+left 5=up+left 6=down Repeat K=45 getKey->K If Ans:Output(8,X," X+(Ans=26 and X<16)-(Ans=24 and X>1->X //move peddle A+(D=2 or D=3 and A<16)-(D=4 or D=5 and A>1->A //move ball horizontally B+(D=3 or D=4 or D=6 and B<-(D=1 or D=2 or D=5 and B>1->B //move ball vertically If B=1+5(D=6)+3(D=2)-(D=5->D //bounce on top edge If A=1+(D=4)-3(D=5)->D //bounce no left edge If A=16:D+3(D=2)+(D=3)->D //bounce on right edge If B=8:Then //ball is at bottom of screen If A=X:Then //ball hits paddle! D-5(D=6)-(D=3)+(D=4->D //bounce on peddle Else //ball doesn't hit paddle! 45->K //game over! End End Output(B,A,"O Output(8,X,"= End If B=8:Disp "GAME OVER! Should work.Last edited by Guest on 25 Feb 2004 08:29:20 am; edited 1 time in total
Darth Android
DragonOS Dev Team

Bandwidth Hog

Joined: 31 May 2003
Posts: 2104

 Posted: 25 Feb 2004 08:47:57 am    Post subject: whoa...8 different directions with the ball...mine only did 4...scary...
Arcane Wizard
`semi-hippie`

Super Elite (Last Title)

Joined: 02 Jun 2003
Posts: 8993

 Posted: 25 Feb 2004 10:19:12 am    Post subject: 6 actually, it doesn't need to go only left or right since that would make it unplayable.
Arcane Wizard
`semi-hippie`

Super Elite (Last Title)

Joined: 02 Jun 2003
Posts: 8993

 Posted: 25 Feb 2004 04:43:52 pm    Post subject: Quote:For(N,1,50 End*GASP* A slow-the-game-down-loop!
Awesome1

Joined: 28 Jan 2004
Posts: 269

 Posted: 25 Feb 2004 05:17:10 pm    Post subject: I tried the game and the ball, "one space", and the [ leaves a trail too. Also when i remove the for(N,1,50), the paddle doesn't move...Last edited by Guest on 25 Feb 2004 05:17:51 pm; edited 1 time in total
Darth Android
DragonOS Dev Team

Bandwidth Hog

Joined: 31 May 2003
Posts: 2104

 Posted: 25 Feb 2004 06:52:39 pm    Post subject: it works fine. when he put "one space" he meant press [Alpha]+[0] once works fine for me, i even had to add the slow down loop back in on my regular 83+. ill bet the if you switch some peices of code around so that they are where the wait loop is you wont need it. PS: i found a glitch: i got it to ricochet perfectly off of the corners so that i didnt have to move the paddle anymore
Awesome1

Joined: 28 Jan 2004
Posts: 269

 Posted: 25 Feb 2004 07:00:36 pm    Post subject: I used VTI and it musta did something wrong, then i did what u said and it works fine, but the scoring doesn't work very well, the "ball" will hit the paddle, add one, but if i miss, it will sometimes show -2 or not do anything at all. What would an AI paddle source be and where would i put it? Last edited by Guest on 25 Feb 2004 07:01:29 pm; edited 1 time in total
Jedd
1980 Pong World Champion

Elite

Joined: 18 Nov 2003
Posts: 823

 Posted: 25 Feb 2004 07:22:34 pm    Post subject: Quote:I guess I forgot to take that out. The reason that is in there is because I have an 83+SE and the ball goes too fast if you don't have that in there. For those with a regular 83+ just remove it and the game goes fine. When I sent my pong game to my friend's SE, it went too fast as well. But instead of a pointless For( loop, you ought to put in a loop (based on the score) that speeds up as you get more points. When you have 9 points (or whatever is 1 away from winning) the For( loop just goes from 0->0 and goes at the maximum speed. Just a thought.
Awesome1

Joined: 28 Jan 2004
Posts: 269

 Posted: 27 Feb 2004 11:12:49 pm    Post subject: Good game so far...Anyway you could spoof up the speed?
Jedd
1980 Pong World Champion

Elite

Joined: 18 Nov 2003
Posts: 823

 Posted: 27 Feb 2004 11:33:52 pm    Post subject: Yeah there are lots of ways. Go read tutorials and stop having people write your code.
Awesome1

Joined: 28 Jan 2004
Posts: 269

 Posted: 29 Feb 2004 12:54:40 am    Post subject: Oh ok, makes sence now... Quote:Yeah there are lots of ways. Go read tutorials and stop having people write your code. Hmm, wasn't my code, and i never had "people", as u like to say, write my codes for me! I just asked a simple question... Gotta buy some better fitting G-Strings my friend and stop assuming that new programmers are out just to leech "codes". I learned all I know off of my own time, and read these on the side to get ideas and learn new tricks and strings that will help my programs function better and give me more experience. Not everyone has the time to mess with tutorials and help files, also have the natural skill of understanding comeplex routines and learn a programming language. Even though TI-BASIC is the simplest of the simplest but im sure u guys got my point. Im not exactly a math genious so i can't pull codes outa my a, make some complex math string, and make a game, relatively speaking of course... Happy programmin' Awesome1Last edited by Guest on 29 Feb 2004 01:01:28 am; edited 1 time in total
Jedd
1980 Pong World Champion

Elite

Joined: 18 Nov 2003
Posts: 823

 Posted: 29 Feb 2004 02:07:43 am    Post subject: Woah sorry dude. Didn't mean to offend you so much.
Arcane Wizard
`semi-hippie`

Super Elite (Last Title)

Joined: 02 Jun 2003
Posts: 8993

 Posted: 29 Feb 2004 08:35:59 am    Post subject: Did anybody try my code?
KARTOONCHRIS

Newbie

Joined: 16 Feb 2004
Posts: 23

 Posted: 29 Feb 2004 12:45:48 pm    Post subject: ok, i have a ti-83 se and i tried the code and it shows the zero go up and it leaves a trail, and when it hits the top it gives me an error, i went trough it twice and double checked it, i tried a bunch of different things and it still doesn't work.
Arcane Wizard
`semi-hippie`

Super Elite (Last Title)

Joined: 02 Jun 2003
Posts: 8993

 Posted: 29 Feb 2004 12:52:05 pm    Post subject: "THE" code?
Awesome1

Joined: 28 Jan 2004
Posts: 269

 Posted: 04 Mar 2004 07:45:23 pm    Post subject: I think he means the code u posted above... sorry for the miss understanding jedd, sometimes i take things too seriously Last edited by Guest on 04 Mar 2004 07:46:30 pm; edited 1 time in total
 Display posts from previous: All Posts Oldest FirstNewest First
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.

»
 » Goto page Previous  1, 2 Page 2 of 2 » All times are GMT - 5 Hours