Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Munchor on January 10, 2011, 03:18:13 pm

Title: Image Variables
Post by: Munchor on January 10, 2011, 03:18:13 pm
Hello, I was told here at Omnimaga that afterall we can use more than Pic0-Pic9. What are those 'more'?

If those 'more' exist, I may go back to calculator programming (this is what made me give up).
Title: Re: Image Variables
Post by: yunhua98 on January 10, 2011, 03:23:11 pm
not in BASIC, but for AXE parser, you can have Pi0-Pic9 plus any combination of two more letters/numbers.

examples: Pic1A, Pic1B3, Pic5Y, Pic099...
although you can only have 153 static pointers max, you can use relative referencing, so this:
Code: [Select]
[0000000000000000]->Pic1
[FFFFFFFFFFFFFFFF]->Pic2
Pt-on(0,0,Pic1
Pt-on(0,8,Pic2
Dispgraph
is the same as
Code: [Select]
[0000000000000000]->Pic1
[FFFFFFFFFFFFFFFF]
Pt-on(0,0,Pic1
Pt-on(0,8,Pic1+8
since they're pointers
Title: Re: Image Variables
Post by: SirCmpwn on January 10, 2011, 03:24:57 pm
You can also use xLib, Celtic III, etc, to access more pic variables through TI-Basic.
Title: Re: Image Variables
Post by: yunhua98 on January 10, 2011, 03:26:01 pm
You can also use xLib, Celtic III, etc, to access more pic variables through TI-Basic.
I know this is in Axe Forum, but how many extra pics in tibasic could be accessed?
Title: Re: Image Variables
Post by: Munchor on January 10, 2011, 03:26:12 pm
Why does everybody suppose I'm talking about Basic in the Axe forum?
Title: Re: Image Variables
Post by: SirCmpwn on January 10, 2011, 03:26:29 pm
There can be up to 256 pictures at one time.  Also, I was just expanding on the information given, not necessarily talking about Basic for your ends.
Title: Re: Image Variables
Post by: yunhua98 on January 10, 2011, 03:28:07 pm
Why does everybody suppose I'm talking about Basic in the Axe forum?
well, i knew you were talking about Axe cause I told you there were more than Pic0-9. but since you said Picture variable when usually, people refer to them as pointers.  ;)

EDIT:  since they are pointers, you could also use Str1 instead of Pic1, but since its more sensible to use Pics for sprites and strs for Text and GDBs for data, we just do it that way.  ;)  I think the Axe documentation elaborates on that a bit more.  ;)
Title: Re: Image Variables
Post by: Munchor on January 10, 2011, 03:28:51 pm
Why does everybody suppose I'm talking about Basic in the Axe forum?
well, i knew you were talking about Axe cause I told you there were more than Pic0-9. but since you said Picture variable when usually, people refer to them as pointers.  ;)

Oh yeah, they are pointers.

Thanks much everyone, this is great for me (sprite user).