Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   onwall3() (https://forums.graalonline.com/forums/showthread.php?t=82225)

Crow 10-09-2008 07:10 PM

onwall3()
 
Requesting the following:

PHP Code:

onwall3(xyradius

Basically the usual onwall checks, but in the specified circle. Would be pretty useful (: Circles for the win!

DustyPorViva 10-09-2008 07:33 PM

I prefer my suggestion of polygonal check :)

Crow 10-09-2008 07:35 PM

Quote:

Originally Posted by DustyPorViva (Post 1430874)
I prefer my suggestion of polygonal check :)

Well, creating a circle with a polygon is also somewhat annoying, so maybe both?

DustyPorViva 10-09-2008 07:42 PM

Not really. A polygon would be widely more flexible, and given it can create what you're asking by just doing a small calculation, I'd say it's the better option. Either way, Stefan doesn't seem too interested in this stuff.

Chompy 10-09-2008 08:41 PM

1 Attachment(s)
So, something like this Dusty? (Red lines is the poly check while the red tiles is what tiles that are returned)

Attachment 46110

And, tried the onwallpath() function? onwallpath(x, y, w, h, dx, dy);

DustyPorViva 10-09-2008 08:45 PM

Nah, my idea was to check walls within a polygon(just like used in showpoly), and it would also return the points where the polygon intersects the wall. Like so...
http://i33.tinypic.com/w18wh4.png
Yellow would be the coordinates returned.

Chompy 10-09-2008 08:49 PM

Hmm.. interesting

cbk1994 10-09-2008 11:25 PM

Quote:

Originally Posted by DustyPorViva (Post 1430877)
Not really. A polygon would be widely more flexible, and given it can create what you're asking by just doing a small calculation, I'd say it's the better option. Either way, Stefan doesn't seem too interested in this stuff.

I'd rather see this be implemented. Either would be nice, though.


All times are GMT +2. The time now is 09:15 PM.

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