Hello,
I’m trying to take the code you’ve written on the
Advanced_FrustumHotelRoom.fla and adapted to a different project. I’ve
got it all working nicely but as soon as I try to implement the
collision detection it all goes horrible wrong....
All I have done is replace the existing bitmap in the library with a
my new one, (same size) but as soon as I do that I get –
Error: Error #1023: Stack overflow occurred.
at flash.geom::Rectangle()
at flash.display::BitmapData/getColorBoundsRect()
at com.alanfriend.templates.gallery::Room/
checkCollisionData()
at com.alanfriend.templates.gallery::Room/
checkCollisionData()
at com.alanfriend.templates.gallery::Room/
checkCollisionData()
repeated....
This is the new bitmap I am replacing -
http://www.funkyjunk.me.uk/ImagesForExternals/away3d/collision.png
If I change var collisionDistance to 1 instead of 30, it complies with
no errors but the collision obviously doesn’t work....
Where am I going wrong?
Please could you point me in the right direction.
Cheers