[Edit] Question about Handle Sprite Pre-Draw

Having trouble compiling code? Getting an unexpected error? Player not appearing on screen? Seeking answers on how to do a particular thing? This is the forum you're looking for, to ask other NESmaker users for assistance.
Post Reply
User avatar
ostincoolston
Posts: 40
Joined: Sun Apr 22, 2018 11:21 am

[Edit] Question about Handle Sprite Pre-Draw

Post by ostincoolston » Sun Aug 26, 2018 3:32 pm

In the Handle Sprite Pre-Draw code, is there a way to figure out how it's telling what sprite to draw.
DrawSprite #$74, #$14, #$2c, #%00000001, spriteOffset, right here the #$2c is telling it to draw the sword icon from that specific spot in the game objects(I think?), how exactly do I figure out how it is calling that tile, and change it to call from a different spot in the game objects. This info would be helpful if I wanted to be able to change weapons in the A or B slot.
Last edited by ostincoolston on Mon Aug 27, 2018 1:39 am, edited 2 times in total.
User avatar
MistSonata
Posts: 315
Joined: Fri Feb 16, 2018 7:10 am

Re: Sword and crystal ball not appearing in Hud

Post by MistSonata » Sun Aug 26, 2018 3:55 pm

Did you put the sword and ball in the same place in the game object tilesheet as the tutorial?
User avatar
ostincoolston
Posts: 40
Joined: Sun Apr 22, 2018 11:21 am

Re: Sword and crystal ball not appearing in Hud

Post by ostincoolston » Sun Aug 26, 2018 3:57 pm

I actually just tried that , and still nothing appearing in the HUD, I looked at that code that draws the sprites to the HUD and mine are the same as Joes in the tutorial.
[Edit] i see something appearing in the brackets now, drew a bunch of scribbles on different tiles, gotta figure which scribble is appearing and why the palette is funky.
jsavoie
Posts: 1
Joined: Mon Oct 15, 2018 2:21 am

Re: [Edit] Question about Handle Sprite Pre-Draw

Post by jsavoie » Mon Oct 15, 2018 2:33 am

Hi, I had the same issue but I figured out where those sprites were by drawing shapes with pixel editor in different squares of the GameObjectTiles.

However, I still don't understand how to assign a specific palette for those items. For now, I'm stuck with the same color palette as for my player.
The color seems to be selected in the Pre-Draw code, but I can't figure out how to use a blue and white color as it is in the "adven-tutorial" video. Is it by changing the 0000001 value for a specific one or do we have to create a new sub palette for the hud items?

EDIT:
Finally I just figured out that my sprites was using the "sub-01" colors, which is for the player character's main colors.
I've assigned the sub-02 to my gameobject sprites and now it's showing properly. :)

Thanks!
Post Reply