Page 4 - Discuss TI 83+/84+ programming? in the TI 83/84 forum on Dev Hardware. TI 83+/84+ programming? Programming forum discussing coding and everything related to the well-known TI-83/83+/84/84+ graphing calculators for math and science. Creative ideas, helpful information and questions regarding applications are welcomed but no homework at all!
This causes it to look like your program, only each quadrant has a different word.
You can change the A,B Text to whatever you want to display in the top left. Same for the others and the different quadrants.
I tried to get "Whats up" to appear throughout the whole screen, only slower than the bottom, for this I wrote another program exactly like yours, only I used Y and Z, and "Whats Up?" instead of stuff and I added my delay program to make a delay so this text wouldnt overtake the other words. I also left out the clrDraw, ClrHome, and AxesOff. I inserted this right before the :Goto1 so it was like this
:Text(G,H,"Adios"
:PrgmWHTSUP (WHTSUP is the name of the other program)
:Goto 1
This caused every word to have a delay.
Do you mind telling me how to program the kill switch in?
Posts: 7,295
Time spent in forums: 1 Month 6 h 39 m 6 sec
Reputation Power: 1504
oh wow, I didn't even think of it that way. I was more focusingon the random generation, but sequential....interesting...nice job
The killswitch uses the getkey function...and I left my TI-83+ at school so I can't hack out some code for you.....buuuuut what you'd need to do is write a small seperate program to test out getkey, and you'd use loops that say basically loop until getkey reaches a certain value (each key on the calculator except for the on button has a number that getkey spits out) and say
lbl K
program (to be looped over and over again)
getkey -> number, variable, etc.
IF (variable = the number of the key you want as the killswitch) then RETURN.
ELSE GOTO K (or beginning, whatever you set as "k" above)
That's where I would start....and TBH that's where I always start. I haven't actually written down my code for adding in a killswitch, for each time I do it I just hack out a new bit of code. If you can't figure it out by Monday I'll spend a chunk of time making one for you...but after seeing that code I think you can figure it out.
Posts: 54
Time spent in forums: 22 h 58 m 49 sec
Reputation Power: 8
Ok guys, I need some help here. I want to be able to type in a name and have it flash in the middle of the screen a couple of times and then go on to do something else. I know how to do the something else, just not the flashing. I tried this:
It displayed the name on the screen, and stayed on there.
What do I have to do?
change "clrhome" to "clrdraw"
for the second program, try putting your hello program into the code for your killswitch. what I think it's doing is putting the variable for getkey into the program hello and not transferring it over to the new program (local vs. global variables). I'd try that first and see if it does the job for you. making a killswitch is a bitch, I know....
Posts: 54
Time spent in forums: 22 h 58 m 49 sec
Reputation Power: 8
I figured out the first one, But Im still confused on getKey.
Also, I highly recommend reading the tutorial found at http://www.ticalc.org/programming/columns/83plus-bas/cherny/#beginning
It has helped me out alot so far.
It says that you should be able to make a fighting game with health, a store, different enemies, weapons, armor, etc, with graphics and animation.
I still have no Idea even after reading that, how to make it, I wouldnt know how to store money, or armor.
Any one have a link to a more in depth tutorial, that also explains things a little more.
Posts: 54
Time spent in forums: 22 h 58 m 49 sec
Reputation Power: 8
Moving a Character
How do I make a character move left by pressing the left arrow?
So far I have:
ClrDraw
ClrHome
4->A
5->B
Output(A,B,"V"
While 1
getKey->G
While G=0
getKey->G
End
If G=24
Then
Output(A,B,""
B-1->B
If B=0
16->B
End
Right now, when I push the left arrow, the program ends. What else do I need to add, what do I need to take out, and how do I replace V with something I drew
Posts: 7,295
Time spent in forums: 1 Month 6 h 39 m 6 sec
Reputation Power: 1504
what are you storing? When I had a picture, I put the picture itself into a program. Like if you drew the picture with commands (line, circle, text, etc.), then put those commands into a program and when you run it, it'll draw the picture.
Posts: 54
Time spent in forums: 22 h 58 m 49 sec
Reputation Power: 8
Im storing picks of a fat man walking, and a twinkie appears, and he says, "MMMMM, Twinkie. and then bends over to pick it up, and an airplane flies over dropping a bomb. the bomb comes down, explodes, the dudes head flies accross the screen (Twinkie in mouth) and then its done. I want to make a series of this unfortunate guy where he gets killed (kind of like Kenny on south park).
So I put it in a program where the words
The Chronicles
of Schu Schu
Episode 1
scroll up from the bottom, then it goes into a countdown from 10, then it goes into the cartoon. It works alot better than anticipated.
I used 2 pics for the guy walking (I repeat these 2 a couple of times before the twinkie comes into picture), an additional 4 for when the twinkie comes across the screen, and 4 for the guy saying MMMM, Twinkie and bending over, 2 of these also have the plane flying in them.
I need a way to get around 10 more pics into the same program to finish this cartoon.
Posts: 7,295
Time spent in forums: 1 Month 6 h 39 m 6 sec
Reputation Power: 1504
can you write a colletion of code to draw each picture? You could just have the calculator draw each picture (using pixels of course so it goes much faster) and not have to store any. These calculators aren't really designed for their animation quality
(there is a way to OC them to 400% their speed, however)
Posts: 40
Time spent in forums: 12 h 55 m 27 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
an etch a sketch prog!!?!??!?!?
ok so i wrote this prog in english today and it's an etch a sketch it's really cool and stuff cause its fun to play with .
Code:
[CODE]clr draw
delvar A
delvarB
a+1->A
B+1->B
lbl Q
menu( "paintne55","Draw",A,"Open",C)
lbl c
Menu("open","pic1",D,"pic2",E)
lbl D
recall pic 1
lbl E
recall pic2
stop
lblA
delvar F
f+1->F
lbl B
Pxl-on(a,b
getkey G
if G=26
then
b=1->B
goto B
end
if G= 72
then
a-1->A
b-1->B
goto B
end
if G=92
then
A+1->A
B-1->B
goto B
end
if G=94
then
A+1->A
B+1->B
gotoB
end
if G=25
then
a-1->A
gotoB
end
if G=24
then
b-1->B
goto B
end
if G=34
then
A+1->A
goto B
end
if G=74
then
A-1->A
B+1->B
goto b
end
if G=45
then
clrdraw
gotoB
end
if g=105
then
goto f
end
if F=1
then
goto b
end
lbl B
lbl f
clr home
menu("save","SLOT1",m,"SLOT2",n)
LBL m
STORE PIC 1
LBL N
store pic 2
goto Q
Code:
clr draw
sorrry there's more code but it sucks k?
Last edited by slayer117 : April 7th, 2006 at 10:37 AM.
Reason: needed code