Problem with Sprite

Started by SilviUDaciaLogan, Jul 06, 2017, 03:03 PM

Previous topic - Next topic

SilviUDaciaLogan

Hello! I have a problem with Sprite. Work, but when I choose the character it does not erase from the eran and stays on the screen. Can you help me solve when I choose the character to disappear?
The script that I use:

Logo <- null;
sX <- GUI.GetScreenSize().X;
sY <- GUI.GetScreenSize().Y;

Logo <- GUISprite( "icon.png", VectorScreen( 809, 103) );
Logo.Size = VectorScreen( sX, sY );
SetMouseEnable( false )


Picture:
http://imgur.com/a/ihcbx



DizzasTeR

You can just do Logo = null; whenever you want to delete the sprite.

SilviUDaciaLogan

But how can I do it to delete, after I choose my caracter? Tell me, please!

PunkNoodle

#3
.

NicusorN5


SilviUDaciaLogan


PunkNoodle

Nevermind I forgot GUI are client scripts, in my suggestion I used server scripts, thus I edited it out to avoid misleading.