Electric cat
Member
Hello all i have been working on animated tiles, im sure by the time i figure one out 4.x.x will be out and already have them as a usable feature.
But i have been doing research and wanted to post this code and see how far away this is from being usa le in NESMAKER. NOW this is not my code i sources if from Nerdy Nights
.inesmap 30 ;mapper30= NROM
.ineschr #2
.bank ;just make a new .bank file below your current CHR file, giving the next seq number and the
;when you set ehich bank to switch to this is the number used. PRG bank numbers are ignored so your original CHR bank will be #0
;and the new one will be #1
;(below the current one int the folder.
;Subroutine time.
....my game code...
LDA #$01;;; put the new bank to use into the A register
JSR Bankswitch ;;Vump to bank switch code
....My game code...
Bankswitch
STA $8000 ;;new bank to use
RTS
;;NO bus COnflict
LDA #$01 ; PUT NEW BANK TO USE into A
JSR Bankswitch ;;jump to bank switching code
...code...
Bankswitch
TAX;;copy A into X
STA Bankvalues, X;;new bank to use
RTS
Bankvalues
.db $00, $01, $02, $03;; bank numbers
As im working through ASM and NESMAKER locating CHR files in nesmaker im taking are the BACKGROUND CHR files and then the Code would be writen to the tile.
But i have been doing research and wanted to post this code and see how far away this is from being usa le in NESMAKER. NOW this is not my code i sources if from Nerdy Nights
.inesmap 30 ;mapper30= NROM
.ineschr #2
.bank ;just make a new .bank file below your current CHR file, giving the next seq number and the
;when you set ehich bank to switch to this is the number used. PRG bank numbers are ignored so your original CHR bank will be #0
;and the new one will be #1
;(below the current one int the folder.
;Subroutine time.
....my game code...
LDA #$01;;; put the new bank to use into the A register
JSR Bankswitch ;;Vump to bank switch code
....My game code...
Bankswitch
STA $8000 ;;new bank to use
RTS
;;NO bus COnflict
LDA #$01 ; PUT NEW BANK TO USE into A
JSR Bankswitch ;;jump to bank switching code
...code...
Bankswitch
TAX;;copy A into X
STA Bankvalues, X;;new bank to use
RTS
Bankvalues
.db $00, $01, $02, $03;; bank numbers
As im working through ASM and NESMAKER locating CHR files in nesmaker im taking are the BACKGROUND CHR files and then the Code would be writen to the tile.