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 07-08-2013, 09:36 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
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?
Reply With Quote
  #2  
Old 07-08-2013, 09:42 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
you can use something like findImg(20).layer = 0;
__________________
MEEP!
Reply With Quote
  #3  
Old 07-08-2013, 10:18 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
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;

Reply With Quote
  #4  
Old 07-08-2013, 10:55 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
both of your versions would work. personally i prefer the findImg() aswell
__________________
MEEP!
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 05:08 AM.


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