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 z80 & ez80 Assembly 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. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
omni


Member


Joined: 14 Jun 2003
Posts: 115

Posted: 13 Oct 2003 06:13:01 pm    Post subject:

My character is going to be able to walk in 2 different directions(right and left), so it is a sidescroller. But if I move the character left, obviously it would have to face left and walk and vice versa for right. So how would I do the images? ie should I have 2 different images for the 2 directions or is there a more efficient way?


example:

if user pressed right, load 1 into a
if user pressed left, load 0 into a
get the corresponding picture based on 'a' (right or left)
update character position and continue getting keypresses

right:
->
left;
<-
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 13 Oct 2003 07:20:50 pm    Post subject:

you could just have a left image, and flip it for right, but that might be complex...
(or vice versa Wink)
Back to top
omni


Member


Joined: 14 Jun 2003
Posts: 115

Posted: 21 Oct 2003 06:31:23 pm    Post subject:

how would I flip it?
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 23 Oct 2003 07:56:59 am    Post subject:

not sure... might be something in 83pa28d about flipping bits... it could be done manually, but not easily...
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