The Holy Grail of Flash
As any of you who have messed with Actionscript know, smooth collision detection is the Holy Grail of flash game developers.Suprisingly enough, Flash only has bounding box collision detection, and no built-in smooth collision detection. Now, there are plugins or something that you can buy (I've only found 1 though), but they cost money.It wouldn't have been very hard for the Flash Developers to code in advanced collision detection, but they didn't. So I did. Smooth, complex-polygon collision detection. It is pure awesomeness, and way better than the default hitTest() which uses bounding boxes only. I wrote this in just under 2 days, and I'll post the actionscript files if you want me to. This code can be used in any language (allowing for syntax changes) like C++, for game development and complex-polygon collision detection.Its fricken sweet. If you don't think it's fricken sweet, go make your own smooth collision detection in 2 days. From scratch. Remember, Flash doesn't even have built-in line-segment intersection code.*may take a few seconds to load*to see the new version, clear your cache!<p align=center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="Collider" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="Collider.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://64digits.com/users/DesertFox/Collider.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="Collider" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></p>And I invoke [url=http://en.wikipedia.org/wiki/Godwin's_Law]Godwin's Law <p align=center>*cough*Hitler*cough*<br><br>*cough*Watermelons*cough*</p>
It's public service for people with an extreme case of laziness. Plus, images look prettier than text. [:)] as long as they don't stretch.
>_<
<font size=64>Goddamnit!</font>I could swear I got rid of that problem. It deals with vertical lines. Slope of infinity is not fun =/Edit: Yayz! Fixed! False positives = headache!Don't forget to clear your cache!Man, that's clever.
DUCKES! ^^
@Dragonos
No, I win.EDIT1:Oh and you have 200 friends now, they need to make the badges go past 40…EDIT@:I was testing my game and wondering why it was so friggin slow in parts that would usually not lag (but still use a fairly big bit of CPU) then I remembered that I had this open in a Firefox tab… Firefox was using like 10% cpu… yet the total CPU was 65% O_O so then my games 24-50%…. yet when I exited this tab my cpu total went down to 4 - 8%… Does flash use its own thing independent of the browser?Flash is CPU intensive at times, especially for really old computers like yours.
Dude… ITS BRAND NEW(Well, a few months old) 1.8ghz AMD Turion 1gb RAM 128mb VRAM
ITS NOT FUCKING OLD
3!"£$%^&*() OMG
Cat–
XD! We thought you were serious. DF was having a fit! Lawl! Well, okie-dokie then.