Skip to content

FlxNestedNapeSprite? #416

@itulau

Description

@itulau

Hi, I've noticed that the default collision system in Flixel doesn't support rotation, which I need for my current project. With a bit of digging, I've been redirected towards FlxNapeSprite, which does in fact support rotation with collisions..

Now the problem I'm facing is that I still need to bundle a bunch of sprites together where one sprite acts as the collider for the world to represent a character, basically FlxNestedSprite but with Nape physics.

Also another thing that I've also need is that within that character should exist another collider (weapon) that should overlap with the body of other characters, which I suppose it could be solved with some sort of collision groups.

Now the problem is that FlxNestedSprite inherits from FlxSprite so it's not possible to polymorphically pass a FlxNapeSprite anywhere.

How can this be approached?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions