Mar-09-2020, 02:07 AM
(This post was last modified: Mar-09-2020, 02:07 AM by michael1789.)
(Mar-08-2020, 11:44 PM)metulburr Wrote: not storing them in Boss_body_seg of itself?
I thought the recursion would only make the spawning slower, not that it would impact anything once it was done doing it's thing. It was also my means of spacing the segments out. I don't know how I'm going to do that now.
If I create all the segments from the __init__ of the boss's head and pass each the previous segment from there, I won't face the same slowdown?
such as:
seg1 = Boss_body_seg(boss_head, self.game) seg2 = Boss_body_seg(seg1, self.game) seg3 = Boss_body_seg(seg2, self.game) etc...no harm in trying.
Thanks
EDIT: Well, I do know hwo I'm going to space then segments... I'm going to figure out the example that Winspar posted for me! lol. It's over my head currently, but I'll get it.