Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Requesting help (https://forums.graalonline.com/forums/showthread.php?t=39004)

KujaBTK 10-07-2002 12:11 PM

Requesting help
 
I haven't play much and now I forgot how to script custom bar etc. I need help on the showimg. I used:
showimg 1,IMAGE,playerx-13,playery;
When I move all the way to the right, the image goes with it.

KujaBTK 10-07-2002 12:30 PM

1 Attachment(s)
I'm still having the same problem.

KujaBTK 10-07-2002 12:31 PM

1 Attachment(s)
and this one for with more detail with the problem.
Yes, I want it to stay on the screen only.

screen_name 10-07-2002 01:52 PM

He said he used playerx and playery for positioning. Don't do that. Use on-screen positioning (with pixels) and changeimgvis to 4 or above.

emortylone 10-08-2002 10:59 AM

Screenwidth and screenheight variables are the best x.X Don't use playerx and playery positioning, because when you are inside or you go to any side of a level, and you're not in the middle of the screen, it bojangles it all to hell :( PLUS that is set for your screenwidth/height. Most people don't resize, but it's always nice to make it compatible. Using screenwidth/height does not use a deffinative value, instead it's a variable. Look into it. When dealing with screenwidth/height you ALSO have to change the img's visiblity to 4 or more.
---Shifter

KujaBTK 10-09-2002 08:19 AM

Quote:

Originally posted by Kaimetsu
You didn't answer the question.
Ahh I said yes

KujaBTK 10-12-2002 10:05 AM

"Damn it doesn't work."

showimgvis 4;
showimg 1,image,screenwidth,screenheight;

Era_Admin1 10-12-2002 10:36 AM

Quote:

Originally posted by KujaBTK
"Damn it doesn't work."

showimgvis 4;
showimg 1,image,screenwidth,screenheight;

showimg 1,image,screenwidth/2,screenheight/2;
// if it's screenwidth or screenheight you won't be able to see the image.
changeimgvis 1,4;
// you need to give it the index of the image which you want to change the visibility of.

KujaBTK 10-12-2002 10:38 AM

Quote:

Originally posted by Era_Admin1

showimg 1,image,screenwidth/2,screenheight/2;
// if it's screenwidth or screenheight you won't be able to see the image.
changeimgvis 1,4;
// you need to give it the index of the image which you want to change the visibility of.

Thanks a lot!


All times are GMT +2. The time now is 01:13 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.