HaxeFlixel / HaxeFlixel/flixel

Groups and Containers: Don't bubble kill, revive, exists, active, visible, and alive down to members

Open
#3,612 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Improvement Structure
Dominant language
Haxe
Stars
2.2k
Forks
522
Avg merge
34m
Merged PRs (30d)
1

Description

Calling kill() or revive() on any group kills() or revives each member, but killing a group would have the same effect as killing the members since the group doesn't update or draw. This is espcially true for containers, and my most hated feature of FlxSpriteGroup/Containers is that setting exists sets exists all the way down. killing the group hides all members, but if a group had killed members when it was killed, reviving it should not revive those members.

I wanna lock this new behavior behind an optional compile flag, where a warning is given if they do set the flag or the counter-flag for their project. eventually we will warn for the counter-flag before removing the option

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading FlxSpriteGroup and container behavior for kill, revive, exists, active, visible, and alive. Trace how the project handles compile flags and warnings. Done means the new non-bubbling behavior, preservation of independently killed members, and compatibility warnings for both flag choices are defined and covered.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.