This site requires JavaScript, please enable it in your browser!
Greenfoot back
KCee
KCee wrote ...

2023/3/26

I want my actor to let go of another actor after a certain time frame

1
2
danpost danpost

2023/3/27

#
Spock47 wrote...
That would be a possibility, too. But in that case, the poison cloud would only go after villagers, but not other pedestrians.
You are right. Might be better to have an (empty) abstract grabPedestrian method in the Grabber class and have each sub-type deal with their own specific behavior. If it is their specific behavior, then it makes sense to have the code in their specific classes.
You need to login to post a reply.
1
2