Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2009, 01:55 PM
FireHunter FireHunter is offline
TGraalScripter
Join Date: Sep 2007
Location: this.country = "Germany";
Posts: 24
FireHunter is on a distinguished road
Question TShowImg with layer 3

Well im stuck at a script:
I've made 2 TShowImg in the Tile-Light-Layer ( 3 ) on the same position
(Background Img + Text)
Well both stay in at least the Layer 3 or a few other npcs with drawoverplayer(); will hide the background image
now my problem is that the Background image is always on the top hiding the Text under it - is there a posibility to bring the text into the front ?
(Both must stay on the Tile Layer + on top of every other Image)
Reply With Quote
  #2  
Old 08-22-2009, 02:07 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Try; reversing the indexes of the two or the order in which they are hidden.
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 08-22-2009, 03:16 PM
FireHunter FireHunter is offline
TGraalScripter
Join Date: Sep 2007
Location: this.country = "Germany";
Posts: 24
FireHunter is on a distinguished road
well doesnt work :-/
Reply With Quote
  #4  
Old 08-22-2009, 04:30 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Would you mind posting the script? Thank you

Or, try adding the text after you've added the background. That could help
Reply With Quote
  #5  
Old 08-22-2009, 04:33 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by [email protected] View Post
Or, try adding the text after you've added the background. That could help
It won't. It doesn't matter in which order you are showing the images, Graal will mess up at some point. If it really has to be layer 3, try using a gani. Not sure if that will do, but I'd give it a shot.
__________________
Reply With Quote
  #6  
Old 08-22-2009, 04:40 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by Crow View Post
It won't. It doesn't matter in which order you are showing the images, Graal will mess up at some point. If it really has to be layer 3, try using a gani. Not sure if that will do, but I'd give it a shot.
Ahh- damn
Reply With Quote
  #7  
Old 08-22-2009, 06:40 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Why does it have to be in layer 3? Normally for stuff like this I would put the text in a layer above that of the background image to prevent the image from hiding it.
Reply With Quote
  #8  
Old 08-22-2009, 10:51 PM
FireHunter FireHunter is offline
TGraalScripter
Join Date: Sep 2007
Location: this.country = "Germany";
Posts: 24
FireHunter is on a distinguished road
Well currently Im altering the players chat
The result: http://img30.imageshack.us/img30/3594/playerchatb.png

The Background Image is layer 2 atm until there is a solution for the problem :-/
- So when Im walking under drawoverplayer() npcs then the text is shown over the npcs image and the background is hidden under the npcs image >.<

TShowImg Layers should really be sorted by id that the lowest one is on the bottom :-/
Reply With Quote
  #9  
Old 09-01-2009, 07:49 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Use showimg2 or specify a z value with the findimg. Just set your z to 1 and add 1 to the y. This would make the text appear in the same position but float over the image.
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 09-01-2009, 08:42 PM
FireHunter FireHunter is offline
TGraalScripter
Join Date: Sep 2007
Location: this.country = "Germany";
Posts: 24
FireHunter is on a distinguished road
Oh nice its working big big thx :o
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:39 AM.


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