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

2021/2/5

Spawning actors from other actors

JustAnArchosaur JustAnArchosaur

2021/2/5

#
I would like my enemy actor to have smaller actors spawning from it every so often as it moves
JustAnArchosaur JustAnArchosaur

2021/2/5

#
would it be better doing this in a subclass of a pre-existing actor, or just have an independent actor
danpost danpost

2021/2/5

#
JustAnArchosaur wrote...
would it be better doing this in a subclass of a pre-existing actor, or just have an independent actor
If it uses the same image, just smaller, and behaves similarly, then just modify the existing enemy class to create them, also. If the looks and acts differently, an independent actor would probably be the way to go.
JustAnArchosaur JustAnArchosaur

2021/2/9

#
I'm doing the latter
You need to login to post a reply.