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
  #16  
Old 12-02-2007, 06:19 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by coreys View Post
Angel, no layers can't have decimals. I'm guessing in Graal's code the variable for layer is declared as int. Sure, you can set it as a decimal, but that doesn't mean it's gonna act as a decimal value. And you didn't correct me, you just failed to read my original post where I already did that.

And yes, levels have layers, but this doesn't pertain to my problem. -.-
LOOK AT WHAT YOU TYPED EXACTLY!!! You types "findImage()" that will not work. It is "findImg()" notice it is IMG not IMAGE. I've just tested this and it works.

PHP Code:
//#CLIENTSIDE
function onCreated()
{

  
showImg200"block.png"this.xthis.y);
  
showImg201,   "bar.png"this.xthis.y); 

  
findImg200).layer++;


__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 12-02-2007 at 08:01 PM..
Reply With Quote
  #17  
Old 12-02-2007, 06:50 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
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
image "block.png";
    
layer 2.5;
    
30;
  }
  
with (findimg(201)) {
    
image "pottedplant.png";
    
layer 2.3;
    
30;
  }

Result: pottedplant.png is above block.png, decimals in layers dont work.
Reply With Quote
  #18  
Old 12-02-2007, 08:01 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Hmm, odd, I thought I have done it that way. :/ Oh well, Crow is correct.
__________________
Deep into the Darkness peering...
Reply With Quote
  #19  
Old 12-02-2007, 08:42 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Crow View Post
decimals in layers dont work.
They only go by half layers. I think 2.3 is being rounded to 2.5.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #20  
Old 12-02-2007, 09:09 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Tolnaftate2004 View Post
They only go by half layers. I think 2.3 is being rounded to 2.5.
no, I tried it :/
__________________
Deep into the Darkness peering...
Reply With Quote
  #21  
Old 12-02-2007, 11:36 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Angel_Light View Post
LOOK AT WHAT YOU TYPED EXACTLY!!! You types "findImage()" that will not work. It is "findImg()" notice it is IMG not IMAGE. I've just tested this and it works.
It's a typo in my post, yes. But in my scripts, no. z.z
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
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 01:44 PM.


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