Jump to content
Sign in to follow this  
atari2600land

More than one of the same sprite?

Recommended Posts

So I decided to try to make a game about ants. I got one ant on the title screen and he moves around randomly. But suppose I want more than one ant running around. I found this in rapinit.s:

 

    dc.l    1                ;                                     ; How many sprites like this one do you want in the sprite list?

If I changed this to a 2, how would I move the second sprite?

 

ants20170526.zip

Share this post


Link to post
Share on other sites

All that does is save you from typing out all the exact same info a 2nd time (or copy/pasting it) and allows you to make changes to all objects of that type with one edit.

 

If your ant is the first object in the list, the copy of it would be the 2nd object. So whatever you do to make the first one move, you'd do the same but wherever you access object one, you'd need to access object 2.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...