Jump to content

Recommended Posts

When drawing a scaled sprite using the object processor, how is the x/y position calculated? E.g., if you have an sprite that is 32x32 pixels, with the top-left pixel at screen position 160x120 and then want to zoom in and make the sprite bigger, how does it calculate where to draw the scaled sprite?

 

I've read that the Sega Saturn allowed a "zoom point" to be defined so you can specify that the scaling has an originating point that is left/middle/right and top/middle/bottom, but can't see from the Technical Manual how the Jaguar does it.

 

Thanks for any help.

Link to comment
https://forums.atariage.com/topic/315122-object-processor-scaled-sprites/
Share on other sites

49 minutes ago, swapd0 said:

The scaling it's done from the left & top corner (right & top if the sprite it's flipped), If you need to scale the sprite from the center you must "move" the sprite so the center will be located at the same screen position. 

That's really helpful, thanks for the quick reply.

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