Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm having trouble understanding this tutorial. It defines the importance of classes, but it doesn't show an outline of the project file so far. From what I got from that tutorial was that there is a stage and actors. Stage would be the static parts of the game, while the actors are the ones moving. After that I got confused with the drawing method. I tried modifying it so I can draw a shape, but it wouldn't work.

How, if possible, would I create sprites using LibGDX's scene2d?

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

You might find some of the demos I put together for Scene2D helpful.

The main one is here.

share|improve this answer
add comment

You can find complete demo code on github and quick description on http://minimaldevelop.com/blog/libgdx-scene2d-game-example-code/

share|improve this answer
add comment

Most people here will suggest that you post your code. Honestly, you don't have to use the Stage/Actor framework to create a game if you choose not to. There's a class called DecalBatch and even SpriteBatch that may help you to understand the process to render sprites. It might help to start there but again, it's hard to explain why it's not working without seeing what you have already tried.

Here's a link to the DecalBatch test code: http://libgdx.googlecode.com/DecalTest.java

If you post your code, I can revise my comments to include some suggestions to get something up and rendering.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.