showing 1 TD over another? -
PepsiCola23 - 16.02.2018
So i got 2 TD`s,one a big black box on the entire screen and another one a picture.
the problem is the black screen is over the other TD so the other TD isn`t visible,how can i make the second TD to be over the black box?
Re: showing 1 TD over another? -
iKarim - 16.02.2018
It depends on what order you show them to the player, in order to get the black box in the background you have to show it before the sprite.
Re: showing 1 TD over another? -
PepsiCola23 - 16.02.2018
i tried
PHP код:
YCMD:sprite(playerid, params[], help)
{
PlayerTextDrawShow(playerid, Sprite[4]);
PlayerTextDrawShow(playerid, Sprite[0]);
PlayerTextDrawShow(playerid, Sprite[1]);
PlayerTextDrawShow(playerid, Sprite[2]);
PlayerTextDrawShow(playerid, Sprite[3]);
return 1;
}
still black box over all sprites
blackbox td :
PHP код:
Sprite[4] = CreatePlayerTextDraw(playerid, 641.666687, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Sprite[4], 0.000000, 49.415019);
PlayerTextDrawTextSize(playerid, Sprite[4], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid,tSprite[4], 1);
PlayerTextDrawColor(playerid, Sprite[4], 0);
PlayerTextDrawUseBox(playerid, Sprite[4], true);
PlayerTextDrawBoxColor(playerid,Sprite[4], 255);
PlayerTextDrawSetShadow(playerid,Sprite[4], 0);
PlayerTextDrawSetOutline(playerid,Sprite[4], 0);
PlayerTextDrawFont(playerid, Sprite[4], 0);
Re: showing 1 TD over another? -
GTLS - 16.02.2018
Its actually behind other textdraws, but it just looks like its in the front. Try changing the transparency a bit.
0xFFFFFF
AA
Re: showing 1 TD over another? -
Mugala - 16.02.2018
toy have to show textdraws to players by numeric.
Re: showing 1 TD over another? -
PepsiCola23 - 16.02.2018
SOLVED:iplaced thecreation of the textdraws before others (forgot to do that),it works now.
thanks guys .
Re: showing 1 TD over another? -
Logic_ - 16.02.2018
Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).
Re: showing 1 TD over another? -
PepsiCola23 - 16.02.2018
Quote:
Originally Posted by Logic_
Textdraws that you've to show in background should be created before others which are supposed to show on it. If that also doesn't helps then reshow the other Textdraws (except for the background one).
|
solved,thanks