Heaven/TQA Posted April 19, 2016 Share Posted April 19, 2016 look... this is my sprite control block for the last sprite which gets drawn on screen... what I dont get is the transparent "classic" sprite fx of pen 0... I am not using any collision buffer so I thought type 5 is it... does I need to configure sprpack to get sprites transparent? I was under the impression that it will be pen 0? dsign_scb5 ;non-collidable sprite dc.b %11001001,%00110000,$00 dc.w 0 ;next spriteblock sky_adr5 dc.w d sky_x5 dc.w 64 ;160 out of screen --> skipped sky_y5 dc.w 32 sky_sizex5 dc.w $0100 ;size x sky_sizey5 dc.w $0100 ;size y stretch5 dc.w $0000 ;$0001 tilt5 dc.w $0000 ;$FFC0 ; dc.b $bc,$de,$fb,$cd,$ef,$bc,$de,$fb ;palette dc.b $0c,$de,$f0,$00,$00,$00,$00,$00 dc.w 0 ;end of spriteblock Quote Link to comment Share on other sites More sharing options...
Fadest Posted April 20, 2016 Share Posted April 20, 2016 I do not have the docs right now, but you should try : dsign_scb5 ;non-collidable sprite dc.b %11000111,%00110000,$00 %11000111 ($C7) is to declare the sprite as shadow (pen 0 is transparent) Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted April 20, 2016 Author Share Posted April 20, 2016 but I need a collision buffer? And colbuffer needs to be cleared, too? Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted April 20, 2016 Author Share Posted April 20, 2016 dsign_SCB dc.b %11000001,%00110000,$00 dc.w dsign_scb2 ;next spriteblock sky_adr dc.w logo sky_x dc.w $00 sky_y dc.w $00 sky_sizex dc.w $0100 ;size x sky_sizey dc.w $0100 ;size y stretch dc.w $0000 ;$0001 tilt dc.w $0000 ;$FFC0 dc.b $01,$23,$45,$67,$89,$AB,$CD,$EF ;palette dc.w 0 dsign_scb2 dc.b %11000001,%00111000,$00 dc.w dsign_scb3 ;next spriteblock sky_adr2 dc.w logo sky_x2 dc.w 80 sky_y2 dc.w $00 sky_sizex2 dc.w $0100 ;size x sky_sizey2 dc.w $0100 ;size y stretch2 dc.w $0000 ;$0001 tilt2 dc.w $0000 ;$FFC0 dc.b $01,$23,$45,$67,$89,$AB,$CD,$EF ;palette dc.w 0 ;end of spriteblock dsign_scb3 dc.b %11000001,%00111000,$00 dc.w dsign_scb4 ;next spriteblock sky_adr3 dc.w logo sky_x3 dc.w 160 ;160 out of screen --> skipped sky_y3 dc.w $00 sky_sizex3 dc.w $0100 ;size x sky_sizey3 dc.w $0100 ;size y stretch3 dc.w $0000 ;$0001 tilt3 dc.w $0000 ;$FFC0 dc.b $01,$23,$45,$67,$89,$AB,$CD,$EF ;palette dc.w 0 ;end of spriteblock dsign_scb4 ;non-collidable sprite dc.b %11001001,%00110000,$00 dc.w dsign_scb5 ;next spriteblock sky_adr4 dc.w desire sky_x4 dc.w 64 ;160 out of screen --> skipped sky_y4 dc.w 64 sky_sizex4 dc.w $0100 ;size x sky_sizey4 dc.w $0100 ;size y stretch4 dc.w $0000 ;$0001 tilt4 dc.w $0000 ;$FFC0 ; dc.b $bc,$de,$fb,$cd,$ef,$bc,$de,$fb ;palette dc.b $bc,$de,$f0,$00,$00,$00,$00,$00 dc.w 0 ;end of spriteblock dsign_scb5 ;non-collidable sprite dc.b %11000001,%00110000,$00 dc.w 0 ;next spriteblock sky_adr5 dc.w d sky_x5 dc.w 64 ;160 out of screen --> skipped sky_y5 dc.w 32 sky_sizex5 dc.w $0100 ;size x sky_sizey5 dc.w $0100 ;size y stretch5 dc.w $0000 ;$0001 tilt5 dc.w $0000 ;$FFC0 dc.b $bc,$de,$fb,$cd,$ef,$bc,$de,$fb ;palette ; dc.b $01,$23,$45,$67,$89,$ah,$cd,$ef dc.w 0 ;end of spriteblock I still not get it... the DESIRE logo should be transparent... Quote Link to comment Share on other sites More sharing options...
LX.NET Posted April 20, 2016 Share Posted April 20, 2016 Did you read this? https://atarilynxdeveloper.wordpress.com/2012/12/13/programming-tutorial-part-11pens-and-more-collisions/ Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted April 22, 2016 Author Share Posted April 22, 2016 Lx.net... yup, hundrets of times... but when chatting with Sage it suddenly worked... Quote Link to comment Share on other sites More sharing options...
LX.NET Posted April 24, 2016 Share Posted April 24, 2016 Great to hear. Sage is in the know. Good that you talked to him. Quote Link to comment Share on other sites More sharing options...
LX.NET Posted April 24, 2016 Share Posted April 24, 2016 Oh, and BTW: if you missed certain information in the tutorial, please let me know so I can improve it. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.