Graal Forums

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

HolySheepy 07-31-2007 05:37 PM

Layer... (-.-)
 
Hi,

so could we have/get a way to change between pixel coord or level coord?
its kinda annoying to make a day/night sys with 4 layers to use(the poly has to use layer 3, because 2 would make tree tops being over it, and so they dont get shaded lol)
now, the problem now is having light effects that are OVER this poly without having to use screenx/y() and a timeout and stuff :/

DustyPorViva 07-31-2007 05:39 PM

I'm not following you... are you using poly's to script the day/night effect?
Just use seteffect.

HolySheepy 07-31-2007 05:44 PM

by not supporting mode 2 seteffect kinda sucks for night effects...

DustyPorViva 07-31-2007 05:46 PM

No it doesn't? Many have made night effects with it.
seteffect(0,0,0,.75);

The higher the last value, the darker it will be.

HolySheepy 07-31-2007 05:46 PM

well, im talking of night, not darken out
i mean blueish and that stuff xP

DustyPorViva 07-31-2007 05:53 PM

seteffect(red,green,blue,darkness);
Just raise the blue(I'd also say the red some for purple) to give it a blue tint.
Trust me, there is no reason to resort to poly's for night effects.
I currently have one using seteffect that fades slowly into a blue darkness at night, then into orange for the morning sunrise before setting back to the normal tint.

HolySheepy 07-31-2007 05:59 PM

i cant find a good seteffect combo that would make it look like this:
http://i9.tinypic.com/674b0g2.png

DustyPorViva 07-31-2007 06:02 PM

What you should do is make a gui with sliders for R,G,B,A, and slide them until you find the effect you want, and have a button that echo's the values.

EDIT: if you're that dedicated to using showpoly, use it on layer4+.
This will show it over everything(including GUI, unless you draw the GUI over the showpoly layer), and will use screen coordinates(0-screenwidth/height) which are in pixels

HolySheepy 07-31-2007 06:03 PM

its kinda impossible, seteffect seems more like putting a fog above the game instead of "dyeing" it

you can see that good at the ears of that bunny

http://i12.tinypic.com/4kvspoz.png bunny ears are still kinda white-ish
http://i12.tinypic.com/6hefzwo.png everything is kinda white-ish
look at the bunny ears here: http://i9.tinypic.com/674b0g2.png
looks much more blue

DustyPorViva 07-31-2007 06:10 PM

PHP Code:

  with (findimg(200)) {
    
polygon={0,0,screenwidth,0,screenwidth,screenheight,0,screenheight};
    
layer=4;
  } 


HolySheepy 07-31-2007 06:17 PM

uhm... what? thats to show a polygon...

DustyPorViva 07-31-2007 06:22 PM

Ya, but it's on layer 4, and will show over all the other stuff. You just have to put your showpoly color effects.

HolySheepy 07-31-2007 06:25 PM

over all the other stuff, including layer 3 light effects :)
hm that layer system is damn annoying is there any way to have the tree tops under the day/night layer, the lights over the day/night layer but having the lights under the tree tops? Oo

DustyPorViva 07-31-2007 06:54 PM

Nope. Light effects are meant to work with seteffect for stuff like that.

xXziroXx 07-31-2007 07:00 PM

You can use how many layers you want too, all above 4 are drawn on the screen instead of the level.


All times are GMT +2. The time now is 01:39 PM.

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