
09-19-2010, 03:07 AM
|
|
One More Time
|
 |
Join Date: Aug 2010
Location: TN, USA
Posts: 631
|
|
Quote:
Originally Posted by Soala
You can use function GraalControl.onResize and use the coordinates (x and y) you always want your image to show at.
|
Here's an example. ( I couldn't understand how to do it when I first started scripting) =
PHP Code:
function GraalControl.onReSize()
{
findimg( ID).x = VAL;
findimg( ID).y = VAL;
}
Quote:
Originally Posted by brasilboy109
so it'd be like???
PHP Code:
//player hearts 0.5
showimg(201,"pavilion75-red-heart-heart.png",850,25);
changeimgzoom(201,1);
changeimgvis(201,4);
with (findimg(201)) {
x = screenwidth - 64;
y = 64;
image = "pavilion-red-heart.png";
layer = 4;
}
???
|
an easier way would be
PHP Code:
//player hearts 0.5
with (findimg(201))
{
layer = 4;
x = screenwidth - 64;
y = 64;
image = "pavilion-red-heart.png";
zoom = 1;
}
|
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
|
|
|
|