Jump to content
IGNORED

Is It Possible to Draw p0 In The Center of the Screen?


gagebair

Recommended Posts

I want to place my player 0 sprite in the very center of the screen AND have it be stationary. So far, I've been able to center it vertically, but from what I've been reading, it seems like it is impossible to place a static player 0 sprite centered horizontally without having it move first, due to only being able to place sprites every 15 color clocks. Is there anyway at all to do what I want to do? Any help at all would be greatly appreciated!

Link to comment
Share on other sites

Looks like your question got overlooked. Sorry about that!

 

Yes, you can position the player0 or any other positionable object in the center or wherever you like. The RESP0 register is used to set the coarse position as you have discovered (often in 15-pixel increments if set with a loop). To set the fine offset and get to a specific pixel position, you use the HMXX register corresponding to the positional object, or HMP0 in the case of the player0 object.

 

http://www.taswegian.com/WoodgrainWizard/tiki-index.php?page=HMP0

 

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