TIB: RE: Y-var
TIB: RE: Y-var
The calc uses x and y whenever you display the graph screen. Try displaying
it and then seting y and x to whatever value you want. That might work.
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org]On Behalf Of Wesley Burr
> Sent: Tuesday, August 18, 1998 4:07 AM
> To: TI-BASIC
> Subject: TIB: Y-var
> Hey everyone.
> I was just attempting to make a simple little game. Not much,
> just something
> to teach myself some of the more advanced methods of TI-Basic, before I
> attempt to tackle ASM. Anyways, here's my problem: (and the reason for the
> wreckage sitting against my wall that used to be my new TI-83)
> The program has an X-var and a Y-var. Together, they give the location of
> the little cursor, representing your character. Now, they are set to X=43,
> Y=21 (using the graphical screen, set to 94x64) So, it looks like:
> All well and good. Except the calculator places the "+" at something like
> 5,43. (row, col)
> I went through the code over and over and no luck. So I abandoned that and
> was amusing myself by making my name go round and round the
> screen. Yippee,
> what fun. It happened again!!!!
> It's not long, so I'll type it out:
> :Repeat K(does not equal)0
> :If X(greater than or equal to)80:-2->D
> :If X(less than or equal to)5:2->D
> :If Y(greater than or equal to)55:-2->E
> :If Y(less than or equal to)5:->2->E
> :If K=21:Goto (theta)
> :Text(Y,X," "
> :Lbl (theta)
> Simple program, makes my name ("WES") bounce around the screen, going off
> the sides like a tennis ball.
> Well, it's not simple at all!! The outcome of it was to make WES appear at
> 40,45 on the screen, and then the bouncing, moving WES started at what
> appeared to be 0,45, headed down south-easterly way, and then began to
> bounce. My question is WHY????? When I changed the "Y" to an
> "F"...it worked
> just fine! What is so special about "Y" and why isn't it working for me?
> What did I do to this thing?
> Thanks for helping little ol' newbie me