# \[AS3\] Need help with collisions

**URL:** <https://forum.kirupa.com/t/as3-need-help-with-collisions/329674>\
**Category:** flash\
**Created:** [October 1, 2012, 4:14am UTC](https://forum.kirupa.com/t/as3-need-help-with-collisions/329674 "2012-10-01T04:14:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teegiimonstuhh](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@teegiimonstuhh](https://forum.kirupa.com/u/teegiimonstuhh)\
**Post date:** [October 1, 2012, 4:14am UTC](https://forum.kirupa.com/t/as3-need-help-with-collisions/329674/1 "2012-10-01T04:14:38Z")

</div>

Hello, I’m fairly hopeless at flash and I need help! I’m trying to create a virtual life simulation of some fish. They move randomly around the stage and when they collide I want something to happen. Like when the boy fish collide with the girl fish, they reproduce, or when a boy fish collide with another boy fish, one “dies”.Could someone please tell me how to achieve this? I’ve attached my code (advice on how to clean that up too would be greatly appreciated!)Thanks.
