|
Post by RedAngel on Mar 16, 2005 12:51:29 GMT -5
After pictures in plane A and B, colour pallettes and scroll, it is time to display sprites But I have some problems Look at this: game: pallettes pallette1,0,0,15 loadtiles sprites,1,1 ship=addsprite(1,1) propsprite ship,1,0 drawtile 1,1,1 joypad: j=joypad() if j.2 then shiftsprite ship,1,0 if j.3 then shiftsprite ship,-1,0 sprites: DATALONG $00033000 '1:ship DATALONG $00033000 DATALONG $00355300 DATALONG $30311303 DATALONG $30311303 DATALONG $33522533 DATALONG $35244253 DATALONG $00000000 pallette1: DATAINT $0000,$0E22,$0AAA,$0444,$0EA0,$0888,$0000,$0000 DATAINT $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000I don´t know how to display the ship (from Devster´s Galaxian) because if I include drawtile it displays the tile in plane A. Please, help me.
|
|
|
Post by RedAngel on Mar 16, 2005 13:05:35 GMT -5
I solved it . game: pallettes pallette1,0,0,15 loadtiles sprites,1,64 ship=addsprite(1,1) propsprite ship,64,0 movesprite ship,128,128But I don´t know how to move it.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Mar 16, 2005 22:40:57 GMT -5
i think your problem with the begining one is that your sprites started at 0,0. sprites are not fully displayed until its coordinates are 128,128 so that you can hide parts of the sprite from the player. sprite values can be in the range of (0,0)-(512,512)
once you've moved your sprite to 128,128; you are able to use shiftsprite to move it around, and what not. like the scroll and scroll2 command, movesprite moves the sprite to the specified coordinate. shiftsprite moves the sprite relative to its old position, ie: shiftsprite ship,10,0 will move the sprite 10 pixels to the right of its old position
|
|
|
Post by RedAngel on Mar 17, 2005 18:52:22 GMT -5
I can move the ship with pad, this is great! I´m very happy.
If I can program little things thanks to BasiEgaXorz then everybody can.
Thanks Devster, I am spending better times testing and learning with BasiEgaXorz than playing Genesis roms. I can´t wait for a new version of your tools and basic.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Mar 19, 2005 1:27:10 GMT -5
=D that's great
|
|