![]() |
Polygon cutout?
2 Attachment(s)
I know this is somewhere on the forums but I seem to not be able to find it after hours of searching. So I played with some scripts and tried to get a polygon to display around the whole screen with a cutout around the player.
This is what I came up with. Any suggestions why the top left part of my screen and part of the inner circle dont display right.. Im not 100% familiar with polygons yet. PHP Code:
|
It's probably easier to create a circle image with a square border then fill in the gaps with polygons.
|
Not sure what you mean.. Black image with cutout of a circle stretched over screen? Couldnt that mess the circle up??
|
You need to add the first coordinates to the end as well.
|
Thanks. That fixed it.. :)
How about for making the lights also show on the poly?? |
Quote:
Also, none of my HD LttP graphics were up for grabs, like the bush, so could you please remove them? |
Quote:
Well other then multiple light sources. How would I make multiple lanterns actually light up near there area.. I tried seteffect() and using a light with an alpha.. and that didn't improve visibility at all.. *shrugs*.. tried poly's too. |
Quote:
|
Quote:
Would be neat to have image masking here.. :( Also: were sorry for using your gfx without your permission. They are being removed. It wasn't realized they were not up for grabs. |
Quote:
Quote:
|
Are there any examples of drawingpanel? I am completely unfamiliar with it.
|
Quote:
However in v6 you can do things like draw polygons and apply filters. If you check out my old server upload I posted in the playerworld section you might find the script in there I made using this technique: http://i.imgur.com/GEwJM.png As you can see there are cons. It's a gui, so it's going to be drawn over all in-game elements like showimgs, and it might try to steal focus since it's being drawn over the entire screen. Also, since you're coordinating level positions like players to gui positions, it tends to be a frame behind the player, which can look sort of bad. |
Quote:
Sadly, the wiki lacks hardcore information. Like you said about drawing poly's not even mentioned in the wiki for guidrawingpanel.. :( |
Quote:
or.. apply lessed darkness where not cur out.. and then throw a slight darkness under it.. |
Quote:
http://i.imgur.com/lJg0n.png |
All times are GMT +2. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.