I want to use Ashley but I also want to use actions and listeners with Scene2d. I read that it is not a good idea, but why? Can I create a system with stage.act(); and stage.draw(); in the update method or is it a bad idea? Thanks.
1
There are 1 best solutions below
Related Questions in LIBGDX
- Creating a random item generator in java,to use in a libgdx project
- Installing Google play service to Libgdx game
- Admob slows down my game - LIBGDX
- Popup with scrollable area
- Removing sprite when Touched
- How do you generate specific random number?
- How to render things expressed in seconds
- Comparison error for isometric sorting
- Does the game engine allow me to intergarte native android code
- LibGDX - load and process texture asynchronously
- Calculation position of a Vector between two others
- Libgdx: Objects creating other objects
- Drawing individual pixels LibGDX
- How to remove Sprite/Object from ArrayList?
- how to get control-c to kill only the running process and not sbt itself?
Related Questions in SCENE2D
- libGDX How to do a scrollable Home screen
- libGDX Stage input handling
- Android libgdx scene2d - button disappears
- How to use NinePatch image in Scene2d but not as button?
- Use Ashley with Scene2d in libGDX?
- Scene2D's ClickListener with custom Actor
- How to use Libgdx Scene2d Dialog?
- How do I convert a libGDX GWT game to version 1.9.5?
- Libgdx, Label doesn't show any text
- Libgdx, how to catch back key, when stage is the input Processor
- Cell width not respected when using colspan
- Actor position is incorrect - Libgdx
- Why I get this exception when i create a dialog?
- Libgdx label rotation
- How to update table row in Libgdx?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't think you can say it's always a bad idea to mix Scene2D and an ECS like Ashley. It may make a lot of sense to use Scene2D.UI for your user interface, and then Ashley for everything else. As you point out, there isn't a technical reason why you couldn't tie these two together. It's a judgment call based on your particular use case.
That being said, one reason why you typically wouldn't use Scene2D and Ashley together is that they have a lot of overlap. One of the basic principles of computer science is "Don't Repeat Yourself"- don't build the same thing twice, and when you do build something, make sure you use as few parts as possible. This includes avoiding libraries you don't need.
If you use Scene2D's actions to move your actors/entities, and you use Stage#draw() to draw everything, what's left for Ashley to add? Likely not enough to justify the complexity it adds.