-
Hello! I've been trying to use 2 different IteratingSystems based on two different families of components and as soon as I have the second system just written in code, not even instantiated or anything, my first system doesn't get called at all: val graphicFamily = allOf(Transform::class).oneOf(Text::class, Sprite::class)
val eventFamily = allOf(Transform::class, EventHandler::class)
class GraphicSystem : IteratingSystem(graphicFamily.get()) {
...
}
class EventSystem : IteratingSystem(eventFamily.get()) {
...
} If I just comment out my EventSystem, the Graphic system picks up entities again. Is this by design ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hm, nevermind, didn't think of calling Sorry for the almost useless issue x) |
Beta Was this translation helpful? Give feedback.
-
It's OK. :) If you have any further issues with Ashley itself, it might be easier to get help on libgdx/ashley repository, though - |
Beta Was this translation helpful? Give feedback.
Hm, nevermind, didn't think of calling
get
during family creation. Works great now. Maybe good to know that breaks everything though :3Sorry for the almost useless issue x)