#Collision of fish in a fish tank leads to them disappearing

3 messages · Page 1 of 1 (latest)

tulip gull
#

This is a Fish Tank, where certain variants of fish can "swim" in. They move horizontally and vertically (the vertical movement is random). But one aspect is not covered yet. When two fish collide one fish just disappears and never gets shown again. I would like to cover this case in the moveFish method or in a separate method, where the larger fish covers up the smaller one until they have different positions again.

jade aspenBOT
#

This post has been reserved for your question.

Hey @tulip gull! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.