Quote:
Originally Posted by fowlplay4
Any layer 4 and over can be displayed, so you can do things like..
changeimgvis(200, 5);
but the GS2 way is using findimg like so:
PHP Code:
//#CLIENTSIDE function onCreated() { drawAPBar(); setTimer(0.05); }
function drawAPBar() { with (findimg(200)) { image = "armageddon-bar.gif"; x = 20; y = 20; layer = 4; } with (findimg(201)) { image = "armageddon-ap.gif"; x = 20; y = 20; layer = 5; } }
function onTimeout() { // Adjust the image width here using changeimgpart or partw, parth variables. setTimer(0.05); }
|
It's perfectly fine to use
changeimgvis(200, 5); :P
EDIT: What Crow said ^