Skip to content

title: "SetSpriteLocation" description: TRSE built-in method (from IDE help)


SetSpriteLocation

Systems: NES
Parameters: b


Sets the data location of a given sprite on the c64. Usage:
SetSpriteLoc( sprite_number, sprite_data_location, bank_location)

sprite_number is sprite 0-7
sprite_data_location is the location in memory divided by 64. Example: if your sprite is located at $2000, then the value should be $2000/64 = $80. bank is the bank your sprite is located in (0= bank0 (0-$3FFF), 1=bank 1 ($4000,$7FFF) etc)