Graal Forums

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

i8bit 07-08-2013 09:36 PM

Drawing ShowImg() under player
 
PHP Code:

showImg(20"shadow.png"player.x+0.5player.y+1.5);
changeImgVis(201); 

How can I draw the image under the player? Or is that not possible for the showImg() function?

callimuc 07-08-2013 09:42 PM

you can use something like findImg(20).layer = 0;

Emera 07-08-2013 10:18 PM

Wouldn't:

NPC Code:

temp.obj = showImg(20, "shadow.png", player.x + 0.5, player.y + 1.5);
temp.obj.layer = 1;



Work? Or in this circumstance would he have to use fingImg(). I personally never use showImg(). I always use fingImg() for drawing whatever I need.

PHP Code:

temp.obj findImg(20);

with (temp.obj) {
  
image "shadow.png";
  
  
player.0.5;
  
player.1.5;
  
  
layer 0;



callimuc 07-08-2013 10:55 PM

both of your versions would work. personally i prefer the findImg() aswell


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

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