Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2005, 10:59 AM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Question Centered Image

Im trying to put an image in the center of the player's screen but i can't figure
out how. Here's the part of my script that shows the image:
NPC Code:
showimg 597,IMAGE.gif,screenwidth/2-imagewidth(IMAGE.gif)/2,screenheight/2-imageheight(IMAGE.gif)/2;
changeimgvis 597,4;


Can someone tell me what I did wrong?
Reply With Quote
  #2  
Old 08-11-2005, 12:16 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Try removing the imagewidth/imageheight stuff and substituting them with the true values
Reply With Quote
  #3  
Old 08-11-2005, 12:20 PM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
The method I generally use is something along the lines of
this.menux = 50/100 * screenwidth
this.menuy = 50/100 * screenheight

Just change around the 25/100 etc to change possitions. It works with minimizing of the screen and mazimizing of it aswell.
Reply With Quote
  #4  
Old 08-11-2005, 05:23 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
I don't know if "imagewidth" and "imageheight" work now, but it used to be "imgwidth" and "imgheight"...
__________________
Kat
Reply With Quote
  #5  
Old 08-11-2005, 11:05 PM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Quote:
Originally Posted by -Ramirez-
I don't know if "imagewidth" and "imageheight" work now, but it used to be "imgwidth" and "imgheight"...
that might be it. i always forget which to use. image or img.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:52 PM.


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