NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: newbie question  
Posted bydeschenes20
Posted on7/18/02 01:23 AM
From IP149.99.117.139  



Easy, just clear the SPR-RAM by loading #$00 into each one of the bits. I'm not sure what method you are using to load the sprites (DMA transfer is the best for authentic NES coding) but make sure its the right sprite. Graphic #$00 should be completely transparent.
A loop like the one you want would look something like this

loop:
lda #$55
sta $2004
lda #$07
sta $2004
lda #$01
sta $2004
lda horizontal ;horizontal is x variable
sta $2004

jsr DMAtransfer

inc horizontal

jmp loop



Mike Deschenes
http://www.geocities.com/deschenes2020

-
Entire Thread
Subject  Posted byPosted On
*newbie question  Anonymous7/17/02 8:44 PM
..Re: newbie question  deschenes207/18/02 01:23 AM
..*Re: newbie question  zero_unscore17/18/02 12:33 PM
...*sprite DMA and vblank sync  Memblers7/18/02 6:06 PM
....*Re: sprite DMA and vblank sync  quietust7/18/02 9:22 PM
..*Re: newbie question  Memblers7/18/02 04:21 AM
...*Re: newbie question  Anonymous7/18/02 09:51 AM
....*Re: newbie question  mcmartin7/26/02 02:15 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo