lucasyuhyuh
Moldy Popcorn
Piece of bacon programming MegaDrive games.
Posts: 47
|
Post by lucasyuhyuh on Sept 1, 2019 11:07:19 GMT -5
I'm making a game where the character's 2 32x32 sprites, and i need to load them both, but i don't know how! Does anyone have a script that can do it?
|
|
|
Post by tiberiyltim on Sept 3, 2019 6:33:43 GMT -5
|
|
lucasyuhyuh
Moldy Popcorn
Piece of bacon programming MegaDrive games.
Posts: 47
|
Post by lucasyuhyuh on Sept 7, 2019 9:29:41 GMT -5
I need to do 2 32x32 sprites, not 1. But for some reason, the emulator ONLY loads one sprite as it overloads the other one, dunno why, help me!
Here's my code:
|
|
|
Post by tiberiyltim on Sept 7, 2019 11:51:45 GMT -5
loadtiles sbo, 16, 1 '4x4=16 tiles for first sprite loadtiles sle, 16, 17 '4x4=16 tiles for second sprite; 1+16=17 ' loadtiles NEXT, 16, 33 '4x4=16 tiles, 17+16=33
sheepbody=addsprite(4,4) '4x4 = 32x32 pixels, 1x1 = 8x8 pixels, 2x3 = 16x24 pixels propsprite sheepbody,1,0 'start tileset movesprite sheepbody,280,232 ' X and Y
sheeplegz=addsprite(4,4) '4x4 = 32x32 pixels, 1x1 = 8x8 pixels, 2x3 = 16x24 pixels propsprite sheeplegz,17,0 'start tileset, #Pallette movesprite sheeplegz,312,232 ' X and Y
|
|
lucasyuhyuh
Moldy Popcorn
Piece of bacon programming MegaDrive games.
Posts: 47
|
Post by lucasyuhyuh on Sept 7, 2019 13:02:26 GMT -5
Thanks! It worked!
|
|