When working with bounding box sizes, and specifically with positioning them on a mob or object, I'd very much like to be able to SEE the box. Would be very useful when using obscure sprites and sprite sizes. Trying to just test and eye it is very tedious.
ID:119022
Sep 24 2011, 6:14 pm
|
|||||||
| |||||||
Sep 24 2011, 6:34 pm
|
|
Been having the same issues when dealing with side-scrollers a feature like this would be nice.
|
Try this for now:
This image is used for the bounds outline, just include it with the code: obj/VisibleBounds |
Ah thanks. It destroys the frame rate when called rapidly, but it'll work. I can use it to help write a function to recenter a bounding box when you change the width on the fly.
It would still be nice to simply have a variable to toggle it though. Probably less CPU intensive. |
I agree this would be a useful/necessary feature to have built in.
Try disabling the for(var/i=1; i<=10; i++) I.Blend(I,ICON_OVERLAY) line, those 10 extra operations make the outline a lot easier to see, but they're going to waste a lot of CPU in the process. Could also just try lowering how many times it blends on top of itself. EDIT: Turning that loop down from 10 to 5 yields acceptably opaque results, I've gone ahead and edited the posted code for anyone else who might come along, should ~double performance. |