Entity doesn't get rendered #789
Replies: 3 comments 3 replies
-
Same problem i don't understand very well how does Litiengine load textures theoretically based on the name of the sprite (name-state-direction) mine is called king-idle-right but it is not called if i switch to super("king") in my class player extends Creature |
Beta Was this translation helpful? Give feedback.
-
I don't use utiliti for much. There isn't really anything you have to do in it that you can't just do in the Java code. Since I don't use utiliti much, I don't know exactly what your issue might be. But make sure you've called Environment.add() and pass your player instance. The gurkenlabs' GitHub page has a few projects that might be helpful: https://github.com/gurkenlabs. Specifically, the ldjam ones have been helpful to me. Also, keep in mind that the creators of the engine are busy people with real lives and might not always be available to respond. They also created the engine as a side project and aren't charging any money for it; they are not obligated to help anyone troubleshoot. Though, I've found they are generally pretty helpful, as is the rest of the community, on Discord. You might have better luck there. If you do, make sure to read through the rules and check out https://dontasktoask.com/ (and the pages it links to at the bottom!) before asking your questions :) That's probably the best way to get a response. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm sorry you had to wait this long for a response.
|
Beta Was this translation helpful? Give feedback.
-
Hi!
I've recently started using LITIEngine and i was wondering how can i render entities sprites. I followed this tutorial from the docs https://litiengine.com/docs/tutorials/creating-a-platformer/ with no results.
I setted up a quick test in utiliti where i have a level with a Player spawn and a creature with a sprite assigned to it.
When the game starts i call this code inside the game level class, trying to force the entity to be rendered
`
But the result is always the same:
I'm not sure how the rendering part of the game is supposed to work. Placing creatures inside the level using utiliti editor is not enough? if so how do i manually render each of my entity?
Beta Was this translation helpful? Give feedback.
All reactions