-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxGroup.kill() and Flxgroup.revive() #30
Comments
Comment by: dreadknought I forgot to mention this is in Flixel v2.55, so I apologize if this has already been fixed in the development tree. |
I think the only wrong behavior here is What do you think? |
I agree. There may be a case when a developer wants to revive a |
I don't know if we tag it as an enhancement or as a bug. Since it is already working and I don't believe it is causing much trouble right now, maybe we could move this issue to the "Future updates" milestone. |
I'd call it a bug since it goes against "expected" behavior.
It was such a quick fix, I thought I might as well add it rather than push it forward. It's so minor that it shouldn't break anyone's existing code. |
It's a bug indeed. I didn't know how much we should change the code to implement it, but as you said, it's a quick fix. Nice you fixed it for the current release :) |
Merged bdaeb9f. |
This fix caused a regression with Mode (non-disapearing particles bug). Previously However after I see two solutions for this problem:
Considering that several games probably use |
We could add an optional paramter However, I would prefer it if |
Argh, I just realized that Other alternatives:
This would all be much easier if there was a |
Also, I did a quick check, and the only class that actually uses the
Oh me a year ago; such wise words, yet unaware of how |
It's a complex matter after all :) I'm a fan of keeping the API as simple as possible, so I believe
I agree with your "year old" comment, but I think it's more useful to have |
Perfect! Have you already started on the code for this, or shall I throw up a quick pull request? EDIT: After a while I assumed you hadn't started on it and went ahead and sent the pull request: #185 |
Sorry for the late reply, luckily you created the pull without me. I've been thinking about this bug and the changes we are planning. I think it will make the API simpler, since As a consequence I think it can drastically affect developers, since |
I've pushed this issue up to the next release. |
The following commit has been undone: FlixelCommunity#110 And a tiny bit of documentation has been added describing the changes. Discussion: - FlixelCommunity#185 - FlixelCommunity#30 (comment)
Issue #202 by: dreadknought
I've noticed that FlxGroup.kill() kills all members of the group, as well as the group object itself, but that FlxGroup.revive() only revives the group object itself, and not its members. Perhaps there could be a fix such that FlxGroup.killmembers() and FlxGroup.revivemembers() would only kill and revive its members, whereas FlxGroup.kill() and FlxGroup.revive() would only kill and revive the group object itself.
The text was updated successfully, but these errors were encountered: