Notice how the fish flee from an advancing cursor (much like real fish). I have tried using atan2 and other tricks to get the fish to face AWAY from the pursuing mouse cursor, but what happens is that when the fish are moving from _Xpositive to _Xnegative (right to left) they appear to be swimming upside down. I have abandoned atan2 for the time being. Is there a way to get a movie clip to reflect along the y axis depending on which side of the mouse cursor it is on? That might be one solution.
Here is something else that would earn partial credit:
If you can corner one of the fish you will notice that when you click on it, you can cause it some distress. (meanie!) I would like to get the fish to ‘gulp’ some bubbles, like in this clip, [color=#0000ff]http://www.tankbangers.com/LAYOUT1b.swf[/color] [color=#0000ff]http://www.tankbangers.com/LAYOUT1b.fla[/color]
but without destroying the random movement and cursor avoidance behaviour of the first clip. Can you figure it out?! cuz I can’t
hehe - thanks Prophet - that looks pretty cool now. I wish I had a little more money so I could hire someone like you
I extended the constraining box so that the fish have a fighting chance, and now, to try and make them draggable and maybe add a little score tag in the corner (10 pts every time you manage to ‘grab’ a fish)
Been too busy to reply to this promptly. Just wanted to thank Prophet and Cyberathlete for their help - as a gift to the community I’m making the FLA available for download if you want to try something similar.