Jump to content
IGNORED

Multisprite positioning bug?


SeaGtGruff

Recommended Posts

I've been working on a game for someone, but I've run into problems with positioning the multisprite players near the bottom of the screen. The following test program demonstrates what's happening. The sprite (which is just a single line for this little test) should drop down the screen, keeping the same x position all the way down-- but as it nears the bottom of the screen, it shoots over toward the middle of the screen (presumably to where player1 is positioned for the score?).

 

   includesfile multisprite.inc
  set kernel multisprite

  player1:
  %11111111
end

  player1x = 8
  player1y = 85
  _COLUP1 = $1A

loop
  drawscreen
  player1y = player1y - 1
  if player1y = 3 then player1x = 8 : player1y = 85
  goto loop

Is this a bug in the multisptite kernel?

 

Michael

Link to comment
Share on other sites

Is this a bug in the multisptite kernel?

I'm afraid so, but it only occurs under very specific circumstances, i.e. when the top of a sprite is more than a few lines below the top of the lowest playfield block. In most games, you will never see this bug.

 

If you pfheight=3 or less, you will never see the bug. Or if you use pfheight=7 and all of your sprites are more than a 4 or 5 lines tall.

 

Of course I'll look into fixing it, but for now, it's easy to avoid and most games probably won't encounter it.

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...