Hi all,
I have a problem about drawing my texts over my sprites.
In many parts of my code i draw my texts over my sprites without problems writing first my paste sprite command and succesively my texts command :
line 1 paste sprite 100,10,20
line 2 d3d_starttext
line 3 d3d_text 3,10,20,0,\"HELLO\",rgb(1,1,1)
line 4 d3d_endtext
line 5
Ok, now i use this code for drawing my sprites:
add_count_sprites = 0
FOR my_sprites = 0 to 10
rem SE IL CAMPO COLTIVATO ESISTE, LO DISEGNAMO!
IF array_sprites(naz_sel_x_scen , my_sprites ,2) = 1
x_ped_sprite = array_sprites(naz_sel_x_scen , my_sprites ,0)
y_ped_sprite = array_sprites(naz_sel_x_scen , my_sprites ,1)
sprite 11000+add_count_sprites , x_ped_sprite , y_ped_sprite,3655
set sprite priority 11000+add_count_sprites, array_sprites(naz_sel_x_scen , my_sprites ,4)
IF sprite exist (11000+add_count_sprites) = 1 then show sprite 11000+add_count_sprites
add_count_sprites = add_count_sprites + 1
ENDIF
NEXT my_sprites
Ok, please don\'t aim in the logic of my code over the fact that i draw my sprites with a FOR loop.
So, now i add my text commands, like before i add these text commands AFTER my draw sprite code but.. the texts always appear under my sprites!!
I have tried changing the \"SHOW SPRITE\" command with the \"PASTE COMMAND\" but nothing. My texts are always under my sprites!
Please help!