Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   ShowImg Layers (https://forums.graalonline.com/forums/showthread.php?t=134266485)

greggiles 05-21-2012 07:54 PM

ShowImg Layers
 
In the showImg() I know you get set layers and what-not to place other 'showImg()' pics behind on another.

Is there a way to set the image behind the player and/or other NPC images?

ex. findImg(#).drawunderplayer = true
^
I know that code doesn't exist but just trying to give an idea of what I'm trying to do.

DustyPorViva 05-21-2012 07:58 PM

findimg(x).layer = y;
Where y is a number between 0 - 3;
0 = drawunderplayer
1 = same level as player(default)
2 = drawoverplayer
3 = drawovertrees(more specifically, draw over layer 2)

Layer 4 and higher are for drawing on the screen layer(like for HUDs and GUIs).

Crow 05-21-2012 08:07 PM

Also, keep in mind that layer 3 is also drawn above setEffect() stuff, so basically good for bright lights in the darkness.

DustyPorViva 05-21-2012 08:17 PM

Quote:

Originally Posted by Crow (Post 1695225)
Also, keep in mind that layer 3 is also drawn above setEffect() stuff, so basically good for bright lights in the darkness.

Aye, pretty sure drawovertrees was changed to drawaslight later on.


All times are GMT +2. The time now is 08:28 PM.

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