Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Benefits of using scene2d?  (Read 562 times)
0 Members and 1 Guest are viewing this topic.
Offline Stein102

Junior Member


Medals: 1



« Posted 2013-08-22 15:03:32 »

I'm working on a 2d rpg using LibGdx and have started considering using Scene2d for some in-game stuff as opposed to just the GUI like I had originally intended. My game is tilebased, and you can right click on different game objects to get different options for each object. For example, lets say the player finds a tree, there would be options like: Examine tree, chop tree, pick apple. Would scene2d be a good option for me to use?

I'm very new to LibGdx and by extension, scene2d. If scene2d is something I should consider using, can someone link me to a useful guide on how to properly implement it? That would be really helpful.

Thanks!
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #1 - Posted 2013-08-22 15:17:28 »

In my experience, I strictly see scene2d as for use with gui based things only and not with actual gameplay.  Such as for buttons.  It does gui stuff excellent.

However for control of entities, actors, players, trees, etc... 
I personally wouldn't recommend using it for in-game.  Though I know sometimes people do.
I would recommend it for your rpg's menu and overlay(always there) type of stuff.

I had spent too much time struggling with it because I wanted access to certain things that are abstracted and handling the in-game stuff myself was far easier.

just my 2 cents  Stare

"Experience is what you get when you did not get what you wanted"
Offline Stein102

Junior Member


Medals: 1



« Reply #2 - Posted 2013-08-22 15:44:53 »

Okay, I'll just stick to using it for my overlay like I had already planned. Would it be bad to have a tiled map rendered behind my scene2d stage? Because I can't figure out how to make it so the tiledmap only renders on part of the screen. The main game will have mouselisteners, so I think it might cause a problem.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2013-08-22 16:41:34 »

@namrog84
+1

@Stein102
No problem at all.

Offline Stein102

Junior Member


Medals: 1



« Reply #4 - Posted 2013-08-22 18:39:20 »

Okay, perfect. So my screen can have multiple input listeners?
Online Longarmx
« Reply #5 - Posted 2013-08-23 00:00:45 »

Okay, perfect. So my screen can have multiple input listeners?

1  
Gdx.input.setInputProcessor(new InputMultiplexer(inputProcessor1, inputProcessor2, ...));


Multiplexer (at bottom of page).

Offline Stein102

Junior Member


Medals: 1



« Reply #6 - Posted 2013-08-23 03:57:51 »

Okay, perfect. So my screen can have multiple input listeners?

1  
Gdx.input.setInputProcessor(new InputMultiplexer(inputProcessor1, inputProcessor2, ...));


Multiplexer (at bottom of page).

beautiful, seems like these guys think of everything. Thanks! Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (19 views)
2014-08-22 19:31:30

atombrot (30 views)
2014-08-19 09:29:53

Tekkerue (26 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (24 views)
2014-08-16 06:12:11

Rayexar (63 views)
2014-08-11 02:49:23

BurntPizza (40 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (38 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!