![]() |
no idea how to do this
I've seen a lot of maze events where your screen is black, but you have the little circle around your character in which you can see. I want to get this effect, but have no idea how.
This is probably considered asking for scripts, but meh, I don't have a clue. |
Well, you could make a huge ass image :]
Just remember to compress it tho |
You script polygons. It's actually fairly simple :)
You script a polygon circle around the player, then 'inverse' it by scripting in a polygon(in the same array!) rectangle the size of the screen. |
I've never really touched the showpoly function (assuming that's what is to be used here?) except for 1 time and I couldn't figure out how to do it z.z
|
1 Attachment(s)
PHP Code:
PHP Code:
So, lets say we want to draw a poly across the upper half of the screen: PHP Code:
Second two: screenwidth, 0 are saying that the next point of the poly should be at the edge of the players horizontal screen, and 0 (at the top of the screen). At this point we have a white line that goes across the very top of the entire screen. Third two: screenwidth, screenheight / 2 - 32 are declaring that the next drawing point should be at the right edge of the screen at the bottom right of half of the screen. Now we have a triangle, so we'll add Fourth two: 0, screenheight / 2 - 32 which tells the next line to draw to the far left of the screen, and half way down. It doesn't require a fifth one because it automatically closes it back up by connecting the last one to the starting point. There's also a showpoly2() which has a format like this: PHP Code:
For example, you could use the image below and possibly do something like: PHP Code:
|
The problem with an image is that customizing is pretty much thrown out the window. Not to mention stretching it would mean varying degrees of visibility, depending on how large the screen is.
|
Quote:
|
Well I suppose it is possible to do with an image, by resizing it... but in the end he'd still have to script polygons around the image. I think that's more complicated than scripting a circle.
|
Quote:
|
you add a lot of black light effects (not just randomly places out tho) that fades away the closer you get.
|
uh cant you just seteffect() the screen and show a layer 3 "light"? O_o
|
Quote:
|
Ya, when you do something like that, the light doesn't 'erase' the black. So if you have pure black, you won't actually see anything but a light.
|
I just opened light4.png or w/e in paint and inverted it. Then I took that inverted image, stuck it in the middle of the screen and drew a black polygon around it.
Also, make the polygon depend on the image's size in case the image hasn't loaded or for whatever reason. (Use getimgwidth(), etc) |
One thing to be careful about: If the player goes into capture mode (ALT + 6 or whatever) this disappears with the right options selected.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
You said "attachtoowner" then you deleted your post .. in any case, this is how GK does it, so I just wanted to warn people ...
Go to the GK staff they are doing it wrong. |
Quote:
I did an effect just like this some time ago with a 2400x2400 png compressed down to 71KB (Aeko made that png) and I just did something like this.. PHP Code:
|
And the battle of the nerds continues! meanwhile you can just try my idea, sure it might be a little complicated to pull off, but I think it will work just fine and will also look very flashy.
|
Quote:
|
Quote:
Just like the black and white picture suggestion, but if you used something that looks like "light2.png" it would have been cooler looking as it has a nifty fade into it. I'm guessing the thing I suggested would look very similar to the darkness effect in four sword adventures, and that darkness looks awesome. |
In order to do anything that looks smooth it would take a huge amount of effects.
|
Quote:
http://i284.photobucket.com/albums/l...ic_lights2.png |
Quote:
|
| All times are GMT +2. The time now is 10:27 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.