Jump to content
IGNORED

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

Link to comment
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.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...