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.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
Bhaliar


Member


Joined: 16 Nov 2009
Posts: 221

Posted: 14 Dec 2009 01:57:30 am    Post subject:

So I've recently become interested in making sprites. I was wondering, but I was browsing TIBD and found the scatter(xyline, Code. Could you use this code to draw a sprite?
Back to top
Galandros


Active Member


Joined: 29 Aug 2008
Posts: 565

Posted: 14 Dec 2009 04:48:36 pm    Post subject:

Bhaliar wrote:
So I've recently become interested in making sprites. I was wondering, but I was browsing TIBD and found the scatter(xyline, Code. Could you use this code to draw a sprite?

Yes, you can use plots to sprites. I saw some tutorial about it on ti freakware, I think.

About speed and size, I don't remember well how was the balance.
Back to top
FinaleTI


Advanced Newbie


Joined: 28 Oct 2009
Posts: 81

Posted: 14 Dec 2009 10:17:00 pm    Post subject:

Plot sprites can be useful, but it depends on what for.
Whenever they are redrawn they clear the entire screen and if they are large they can take a little time to draw.
They can also take a lot of memory if they are large.

However, there are some positives:
They can be easily rotated using complex variables and real( and imag( commands, there's an example somewhere online....
If they are small, they draw quickly.
Only size constraints are memory.

So plot sprites can be useful or bad, it depends on what you use them for.
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 15 Dec 2009 05:20:50 pm    Post subject:

An example of using plot sprites can be found in Metroid Pi: http://tibasicdev.wikidot.com/archives:metroid-pi
If you watch the gif long enough, the sprite of the spaceship landing is a plot sprite.
Back to top
Display posts from previous:   
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.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement