You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2021. It is now read-only.
Hello,
I'd like to create a Renderable component with three implementations, Sprite, AnimatedSprite and Shape. How should I do this with anax?
Ideas:
I've tried inheriting components from an abstract class component, but my Entity System for the abstract class didn't work (did not contain any entity, however I've added an entity of the child component type).
Create all 3 components, and in the filter of the Entity System specify Sprite OR AnimatedSprite OR Shape component. But I did not find a way to do this, I saw only require and exclude filters :/
The text was updated successfully, but these errors were encountered:
My problem with your approach is that I need to sort all entities with those components by Z index and draw them in that order. If I have 3 different Systems for rendering I can't do that. This is why I'd like to have only one System for all 3 components. Do you see any other solution for this?
Hello,
I'd like to create a Renderable component with three implementations, Sprite, AnimatedSprite and Shape. How should I do this with anax?
Ideas:
The text was updated successfully, but these errors were encountered: