One of my student teams needs an image that has an irregular shape
and a transparent background to know when it "hits" another such
image. Any suggestions? I already know about Arcade Engine, but was
hoping for just some code that would do the trick.
Thanks in advance,
Mark Green
Hi Mark,
I hope you understand that I can not share the actual code of AE
here. :-) However I can share the principle.
Calculate the smallest rectangle of intersection and compare the
maskdata in that area. basically what you need to do is take the
maskdata of both portions of the 2 image
Mark,
The following site has a Collide library available for only $15. There is a
working demo available that runs quite nicely for collision detection. Check
it out.
http://curryk.com/collide.html
-- Derek
Mark Greenberg wrote:
> One of my student teams needs an image that has an irregula
Thank you Malte & Derek for your suggestions about collision detection.
Malte, my school district will not allow me to load any further
software onto the students' computers for the project the students
are doing with Rev. In fact, it appears they are planning to cancel
the project altoget
Recently, Mark Greenberg wrote:
> ... suggestions about collision detection.
>
> ...The students are
> making an educational game about the solar system. It resembles the
> old Space Invaders, with asteroids falling from the sky and a space
> ship that slides left and right to shoot them. The as