Program pong on the ti-84 plus CE
Vložit
- čas přidán 2. 02. 2020
- How to program pong on the ti-84 plus CE!
If you have any questions about any commands or anything, read the comments! There are lots of answers! Sorry I won't be able to answer all of them. There's so many!
Thank you for watching! Please like and subscribe!
If the wait command is unavailable to you, or you need the ball to move slower, then use this:
• [PART 1] FIXED!!! Pong...
Sourcecode: pastebin.com/UsB23V1V
Sourcecode with slower ball/no wait command: pastebin.com/KKRDUMrg
Thank you so much! I’m 35 and I’m interested in teaching myself how to code and learning basics like this help out a lot to understand the basics if I press X does Y in coding through graphing characteristics!
Thank you!! This is by far the best version of pong you can make using ti basic!
This is great! I had a bit of trouble early on but I got it fixed and it works perfectly! Thank you for the excellent tutorial, and you just got another subscriber.
It took a couple of tweaks but this was so awesome! I subbed too!
This is awesome, it feels so much better to have typed in the code myself rather than downloading games online
To FIX the Game crashing when the ball hits the Paddle, make the following changes:
Under the line "IF X=26", change 1→C to -1→C (negate not minus)
Under the line "1→L", change 1→D to -1→D
The X,Y direction is to be negated when it hits the higher boundaries. The Pastbin code doesn't have the negatives, but the video does
And for it to work on TI-84 Plus, change references 10 to 8 and 26 to 16, also P
What do you mean by change references 10 to 8 and 26 to 16?
@@isabelleschneidau1362basically every time he uses a ten for how many columns there are, replace it with 8. and same for 26>16
the only exception is for using the right arrow, it's get key is 26, don't change that one
This is so cool! I had a lot of errors but retyping the code and finding comments really helped!
If it isn’t working I recommend just completely restarting as it’s faster than finding the bug normally
I had a lot of fun with this. It’s pretty impressive and I learned from this. I hope to be able to come up with more games on my own
Ty for all these amazing tutorials and additional help in the comments!
Thank you so much! It’s the best way to learn how to use my new calculator, it’s no so scary anymore!
Totally worked so cool thanks a lot
It was hard and time consuming but we pulled through 💯
I did this on my brother's calculator and it worked perfectly it is awesome
Works great on the TI-84 Plus CE-T too
i screwed up somewhere
Same
Same
Same
same
if there’s an syntax error message, select goto. It will show you the line with the mistake
OMG IT WORKS THANK YOU SO MUCH!!! I SUBBED!!!
We need more vids bro these are so cool 😎!!!
Great tutorial!
thanks for the good video from germany :)
New to programing. it worked first try, it was awesome thank you!
You’re welcome!
Awesome! This is so much better than the other version.
I'm glad you like it!
This is great btw how do i get the paddle to move faster
I learned to program on TI85, TI86 & TI89 over 20 years ago when in middle~high school, they were & are GREAT! platforms to learn how to program, I first learned with TI Basic them learned Z80 then MC68k asm. It was an unfortunate decision for TI to disable the TI84 plus CE asm capability.
Yes, sad. Cemetech.net, which you may have heard of, has come up with plenty of strategies to go around this obstacle.
Could you explain what line 31 and line 32 was doing ? Also, I am not familiar with the syntax how what P-2(G=24 and P>1-->P was doing.
It looked quite convoluted there.
I am thinking if it could mean :
If G = 24 and P>1 , then P -2 -> P ?
Its collision detecting for the wall
Great video was wondering if you could do one on snake
Sorry for coming back so late! If you are still online, then yes, I will post a snake tutorial very soon!
This video is awesome
hey i just tried this and it works great!! my only issue is that whenever my paddle hits the right side of the screen and i starts to move it to the left side it leaves a trail. i made sure to go back and add the 4 spaces but that didn’t fix it, do you have any suggestions?
Double check the code that involved the paddle. You may need to re-check your entire code!
If you don't have the "Wait" function, then the problem is that you are running an old version of the OS.
To fix this, make sure that you have TIConnect installed on your computer and that you have the link cable / charging cable for your calculator in order to connect it to the computer. You want to go online and find a newer OS. To find what OS is currently installed on your calculator, press: 2nd, +, 1
The second line should be your OS version.
When choosing a new OS version, I would choose 5.3.0, as that is one of the last versions that has support for running assembly programs on the calculator. This support was removed in later versions of the OS. Once you have the file for the OS on your computer, connect your calculator to the computer while the TIConnect application is open. Make sure to back up anything you want to save on the calculator before proceeding, because installing a new OS will clear your ram. Next you want to drag the os file onto the name of your calculator in the TIConnect application. It will ask if you want to proceed with installation. Click yes. The calculator will take about a minute to install the OS. Afterwards you will have many new features on the calculator, including the Wait function.
Ok
I don't have that cable and can't get one rn
When I made this and tested it I realized my paddle tail expands every time I press left or right, and I don't know if the paddle is supposed to lose a part of itself when the ball hits that specific spot. Is there any way of fixing this? I have a TI-84 Plus, and I don't know what lines of code I'm supposed to alter. I'm confuzzled
I have a problem were when i lose it says "Variable used is not currently defined", i looked over the code and nothing seems wrong, and the GoTo brings me to the last Output line
ok it works now, thanks
I’m done coding and when I play the ball always goes through the platform. Do u know how to fix that?
Yo we need more of these
=
I have two questions,
1: For some reason, when the ball hits the right side of the screen, it stops. It says the line [Output(Y,X,0] is the issue. I checked over, and I'm fairly certain I got everything right.
2: I saw when looking through the program list that you could activate a program. How would I need to change it if I wanted to make a restart button?
Did u ever find the solution to the problem? I'm having that issue where the moment the ball touches the paddle, the game ends.
@@johnny6523 no. Probably just gonna check Reddit at some point and see if anybody knows.
@@johnny6523 same....
The answers to your questions:
1) A lot of people seem to have this issue, for now just try your best to rewatch the video :(
2) Look up on google "how to archive a program on the ce" and you will find something!
Thank you for your support! I will be posting more vids soon!
@@CalculatorGuy2001 I FOUND YOUR MISTAKE
could you tell me what program text sources you are using?
The language is called TI-Basic, let me know if you have any more questions
This is cool
I've checked over many times, but when it hits the paddle I get an error and it puts me to output(y,x,0. please help!!
I don't know what to say man, I would just double check the code and rewatch the video. :(
How can u stop it from buffering
THANK YOUUUUU
Im unable to move the thing! im trying to move using the arrows but it isnt moving.
I have a TI-84 Plus CE and the Wait command doesn’t exist. Can someone please help me?
Edit: this was actually my bad, I forgot one space. THIS IS AMAZINGGGGGG, TYSM
how to do space?
@@liamkimmerle5882 Alpha then press 0
@@jacobtartabini2679 ty man
@@jacobtartabini2679 do u know how to fix infinite balls coming? It’s not just one but many
@@liamkimmerle5882 I had the same problem, watch the video carefully again and pause it as a often as needed. You have to go slow and listen because half way through he changes the beginning of code. I have it and it works great
I’m played it so much in class now my teacher takes my calculator away 😂
does anyone know how to fix domain error? it popped up and its where :Output(10,P,"---- is
5:30 I didn't have a "wait" command, what could I do instead?
Same I’m on a TI-84 plus not the ce
Same I have the ti 84 plus C silver edition
@@hassanal-idani2792 Same with me. Can we use stop
@@justadqck bro I was literally wondering the same thing. I think you need a calculator TI-84 plus CE.
there is a way to deal with it without the wait command, and it being formated for the TI-84 plus but the way i did it made it to where you can't select a speed, but you can change it in the program
Here it is:
1→X
1→Y
5→P
0→L
1→C
1→D
0→S
ClrHome
Repeat G=45 or L=1
For(A,1,100 *note you can change the speed here the lower the number the faster
Disp
End
getKey→G
If X=1
1→C
If X=16
1→C
If Y=1
1→D
If Y=08
Then
If X[less than]P xor X[greater than]P+3
1→L
1→D
S+1→S
End
If G
Output(08,P," (there are 4 spaces here)
P-2(G=24 and P[greater than]1→P
P+2(G=26 and P[less than]23→P
Output(08,P,"---- (4 minuses here)
Output(Y,X," //1 space
X+C→X
Y+D→Y
If L=0
Output(Y,X,0
End
ClrHome
Output(4,05,"GAME OVER
Output(5,05,"SCORE:
Output(6,05,S
"
I double checked the code twice- and there is an issue i have. The ball goes the line above the paddle and then goes back onto it. Any fix? @Calculator Guy And im using the ti84 plus ce
nvm, i forgot to put an if in front of a statement
Sorry for late reply, let me know if you still need help!
I am having a problem where the back of my paddle isn't deleting as it moves, any idea what I did wrong?
I would just double check the source code, especially around the “output - - -“ line. Sometimes you need to add a space to the other output line
why does the ball make a line when it is moving
I have an error, "Value entered is not allowed in the function or command." Goto brings me to Output(Y,X,0 . How do I solve this?
Double check your code using the code in the description. If you still need help let me know!
I programed the whole thing and double checked all the lines twice but my paddle won't move. Do you know why?
i have the same problem
That is unfortunate! I will look into this issue.
My ball wont move is there a way to fix that??
Whenever I run the program only the paddle pops up for a second then it’s an error. It’s saying the error is on the last “End” command, any ideas how to fix it?
I would just double check your code, as a typo could be the issue
When I run the program the ball moves at 1 frame per year.
I have the TI-84 Plus CE Python
I have the exact same calculator and everything works fine for me, you probably had an error typing it down somewhere 🤷🏻♂️
^^
The same thing happened to me just delete the program and retype it
I have an error where when the ball hits the paddle i get a Domain error and when I select Goto it brings me to the line Output(Y,X,0
I would just double check the code in the description, as one small typo can kill your program!
@@CalculatorGuy2001 the same thing happened to me I have checked everything three times I can find what’s wrong when I hit goto it brings me to the “output(X,Y,0” line
@@CalculatorGuy2001 cant*
how do you put an end on the program at around 8:17?
Prgm then 7
My zero keep trailing each other as is it were a chaos theory test
When I execute program I can hit the ball off the paddle once, but then once the ball hits the top of the screen, it says
"error: domain, Value entered is not allowed in the function or command.
Ex: Radian Mode tan (pi/2)
Degree Mode e^(pi/2*i)"
I have no experience with coding and looking for a fix. I cant find it when i go over the code.
fixed, i just restarted and i dont know what i did differently
Glad you got it fixed!
when im select speed there automaticaly say me game over score 0
still having the "output(Y, X, 0" issue, used code in description to make :(
Make the 1→C line under X=26 negative, so -1→C
Thanks for your feedback! It helps you and will help everyone in future!!
that is impressiveb
Whenever I enter the speed I get an error code that leads me to line 33( :Output(10,P,"---- ) I have rewatched the video, and read the description twice, but I can't find a problem with any of my code. ( If it helps the error code is: )
Value entered is not allowed in the function or command.
Ex: RADIAN MODE tan((pi)/2)
DEGREE MODE e^((pi)/2*j)
Do you mind if you send me a video or pictures to my email if your code? Calculatorguy2001@gmail.com
I figured out the problem. On the 31st line I put a negative sign instead of a subtraction sign for the (P-2) section. It works great now!
Got stuck here as well
I am working to find a solution
I messed up somehow i typed the program how you said but when i run the program it gives me syntax errors
Rewatch the video and look at the source code perhaps
How come the wait function isn’t on mine?
I can only get score of one since it automatically gets game over after the ball hits the bar
Same. Does anyone know how to fix thatx
Double check the source code in the description, let me know how it works!
I did but it now shows an error is one of the numbers suppost to be negative?
@@plateofbacon877 I wish I could make it easier but you will have to re-watch the video to pinpoint the bug :(
The ball has a permanent trail behind its self. How do I fix this? What line would the mistake be on?
i have this problem too
i figured it out!!!
at 13:41 he hovers over the line «Output (Y,X,”» make sure you have 4 spaces after the quote
Nice Lauren!
Try redownloading MirageOS from a different website/browser, or reset your calculator if you are willing!
The ball just goes through the 4 minus signs and when it does it also doesn’t show my scrore
Sorry for late reply, let me know if you still need help!
@@CalculatorGuy2001 it’s all good, I think I’m good now
Hey how do you fix it buying laggy I don’t know if it’s my calculator or the code
Double check your code using the description! Reply if you still need help!
Mine says memory insufficient to preform the calculations check infinite recursions or loops plz help asap
First I would check to see if there are any bugs in your code. One messed up line could be a disaster! If there are no bugs in your code, then let me know and I will dive deeper into this issue.
Hey Im on a TI-84 plus not the CE and my code did not wok, I think its because the "Wait" command in PGRM -> CTL is not a present funtion of the TI-84 plus
Yeah sadly
@@CalculatorGuy2001 Dangit ok will invest in the better model when I get the chance
the paddle isn't collidable
for some reason can pls someone help me
Start at 7:00 and watch very carefully! That line should be around the 7-8 minute mark!
Hi this is kashif when I tried to put in Wait into my ti-84 when I scrolled down it showed me IS>( instead of
I know this is a very late comment but I recently watched this in hopes it would work but my calculator has a very hard time running this and loads for about ten seconds just for it to run a command not sure is this is because I have a python version but I am very confused, could you help?
I would just make sure your code matches the code in the description; if you run into any more problems feel free to reply! Python calculators are compatible with this program.
@@CalculatorGuy2001 I fixed the original problem it runs amazing except that I get a domain error everytime I play and can’t find the problem it brings me to the “output(x,y,0” line and I’ve checked everything three times, any advice?
@@CalculatorGuy2001 I saw other comments about this problem and was just wondering if people ever figured out how to fix it?
I just found a typo in my description! It’s the line at 7:56
@@CalculatorGuy2001 thank you so much! I hate to be a pain but have you got any other questions about that same problem but when it hits the right side of the screen?
Whenever the ball hits the side I get error syntax?
Check the description for source code and make sure you are typing everything in exact! Rewatch video if you have to :(
I'm on the TI-84 Plus CE and I don't have the Wait option what do I do?
I think I posted a solution in the description, let me know if you still need help, or update your OS on your calculator, to do that do a quick google search
When I enter the speed at the beginning of the game my calculator shows an error, is there any way this can be fixed?
I would look at the source code in the first 10 lines and see if there’s any typos
@@CalculatorGuy2001 I just double checked and its fixed now, thank you so much!
The ball is only staying at top moving side to side could you please help
Me too
when the ball hits the paddle it sas error and I goes to the output(y,x,0. part. help please?????????
Double check the source code! If you still are having issues please let me know!
I have to add another enter in the code because of a mistake how do I do this?
Press 2nd del enter
How do you make the paddle longer
Sorry for responding so late but here is the solution:
10:44 make it 5 - signs
9:32 make it 5 spaces
7:50 make the line :If XP+4
9:47 make the line :P-2(G=23 and P>1→P
Hope This helps! Let me know if you encounter any bugs!
@@CalculatorGuy2001 I might have done something wrong, but when I did the changes, the second it touched the wall, it stuck to the wall and wouldnt move so I'ma recheck the programing and see if I can fix it
Actually it just won't let me go left, not that I get stuck to the wall
Whit wich button do you start?
Sorry for late reply, let me know if you still need help!
You can code games.....on a calculator?
this is cool and all, but how do i leave? i want to see my family
The ball just goes thru my paddle. How do i fix it?
Double check the source code in the description to make sure everything looks right. You may have to go through the video again to check for any typos you may have done.
What do you press to start the game I have the code but how do I start after I press prgm then pong
Press enter under the exec menu
@@skittlesfnbr123 make sure there’s a prgm before the program name on the typing screen
@@skittlesfnbr123 wow! What happens when you press goto? That should take you to the error. Make a vid on that if you can!
I’m having trouble on the line with wait (( 10-a)/100 because my calculator shows up is> not wait
Me too
I hate to say it, but just rewatch the video. Since you are not the only one with bugs, I will try to come up with a solution for all you guys.
@@CalculatorGuy2001 I think you can use pause instead, not sure tho
I have a bunch of zeros going everywhere and I can't play it without loosing almost immediately. How do I fix it?
This happened to me too, go down to the line of code right after where you made the paddle look like “----“. The line of text right after that which looks like : output(Y,X,” needs a space after the quotes
That should fix the millions of zeros
@@cartooncorner6871 Oh ok, cool!!! Tysm!!
hey i had this problem too and i fixed it but my paddle keeps getting a bunch of extra lines on the right side of it
Interesting. For some reason I loose the game when the ball hits the paddle, Idk why. Can anyone help me?
Got to ~5:40 and realize i don't have a "wait" function. Am I still able to finish out and run this game?
Is it also is>( for u to?
@@memsy3327 yep, got that far and was like.. hmmn thats not right
Yes, wait function just pauses the program for a bit. You can also use a for loop.
:For(z,1,500
:End
Does something similar
;)
Edit - DO NOT USE THE FOR LOOP! WAIT FUNCTION MUST BE USED FOR CE! (you can use the for loop but more on that later :) )
My ball moves really fast, can you slow it down some way? I have a plus ce-t.
If there's not a solution in the description yet, I will put one there!
I will post a video today or tomorrow on this topic, so keep an eye out for it!
Does this work with Python? I got an error message.
Personally, I don't know since I don't have a python calculator. If you followed every step correctly and are still getting an error, let me know and I will dive deeper into this issue!
coolio
Edit: I just saw that someone hearted a comment there was a notification and I came here and I remembered everything that happened I coded this into my calculator
Nice tutorial!
I’m using the same calculator but I cant find wait, can someone help?
You can just skip that step and clear it but it will always be max speed
Sorry for late reply, let me know if you still need help!
How do you backspace
The Del button
I have a python and it doesn’t work. My calculator is a TI-84 Plus CE. Please help!
Reply to this comment if you are still needing help! Sorry for responding so late!
Yaaay
I accidentally deleted a line in the code and I can't add a new one. how do I fix this?
[2nd][del][enter]
whenever the ball hits the walls i get an error syntax what. do i do? PLS help me
Double check the source code using the description! If you still need help let me know!
thanks! btw I sub'd
how do you fix the paddle not moving?
Mine works fine but the paddle doesn’t move when I hit the arrow keys
@@liamkimmerle5882 did you figure out y
@@calesorg7809 yeah but I don’t remember how it was so long ago
Sorry for late reply, let me know if you still need help!
Does this work on the nspire
Sadly no! Nspire has a whole different language!
how come when the ball hits the paddle i get an error
Seems like a typo to me! Double check all your source code!
dose it work on a TI 83 pluse
No sadly, but I will make a vid on that soon!
@@CalculatorGuy2001 ok thank you for the reply
the ball duplicates its self while moveing pls help
Double check the source code from the description! Usually one missing line or typo can cause a fatal error! Reply if you still need help or need the download!