The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with duplicates and calculations
 

Post Reply  Post Oekaki 
 

Posted By Message

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
25th February, 2005 at 23:39:50 -

I tried asking this before, but nobody really understood what I was saying, so these files might help:
This is the file with clones instead of duplicates: http://www.sitesled.com/members/unsane/shadows.cca
This is the file with duplicates: http://www.sitesled.com/members/unsane/shadows-tryone.cca

The file with clones works, but I want to use duplicates so that I don't have to do any additoinal coding and so that I can create as many light and shadow objects as I want.
If you still don't know the problem after looking the files: I want one shadow to work with one specific light and another shadow to work with a different light.

 
http://www.klik-me.com

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
26th February, 2005 at 12:07:40 -

Qualifiers will make clones act as duplicates of the same object.

 
- Tigerworks

Long John Kickbag



Registered
  26/08/2002
Points
  148
26th February, 2005 at 12:21:46 -

Instead of using the XPos and YPos alterable values of the light objects just use the X and Y positions directly.

 
Resize! - www.clicksplat.com/comparison.html

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
26th February, 2005 at 14:59:44 -

Erik C.: I've tried that before, with the same result. For some reason x and y positions aren't good for comparisions, because they only compare one object's x and y position (I think it's the last created object's x and y position).
Tigerworks: I don't want to have clones, though, I want to just have duplicates so that I can place as many lights as possible.

 
http://www.klik-me.com

Long John Kickbag



Registered
  26/08/2002
Points
  148
26th February, 2005 at 20:01:53 -

Well it works for me: www.clicksplat.com/shadows.cca (it messes up in the top-left corner though, dunno why and I can't really be bothered to find out right now).

 
Resize! - www.clicksplat.com/comparison.html

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
27th February, 2005 at 17:08:34 -

The modification you sent me is still pretty buggy (shadows don't work the way most of the time and such), but thanks anyway.. Can anyone offer any more help?

 
http://www.klik-me.com
   

Post Reply



 



Advertisement

Worth A Click