How to realize "switch scene" in andengine?

  ... discussions about development with the GLES1 branch of AndEngine.

How to realize "switch scene" in andengine?

Postby freeorfeel » Tue Jun 21, 2011 8:58 am

hi, andengine developers:
As you know, there usally be seral scenes in a game.(ex: racing car scene, winning dancing scene).
In Andgine, How can I realize these scenes and switch between them?
Thanks a lot!
freeorfeel
 
Posts: 17
Joined: Tue May 31, 2011 10:22 am

Re: How to realize "switch scene" in andengine?

Postby tajny » Tue Jun 21, 2011 4:17 pm

Simply like that :

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. engine.setScene(mScene);
Parsed in 0.029 seconds, using GeSHi 1.0.8.4

Paweł P.

--------------------------------------
Portfolio

Run Santa Run Link
Xelorians Link
User avatar
tajny
 
Posts: 216
Joined: Mon May 30, 2011 10:23 pm
Location: Poland

Re: How to realize "switch scene" in andengine?

Postby freeorfeel » Wed Jun 22, 2011 5:37 am

Thanks for your answer, it's helpful for me.
Do you have any example that introduce "switch scene" like you said?
Thank you!
freeorfeel
 
Posts: 17
Joined: Tue May 31, 2011 10:22 am


Return to GLES1

Who is online

Users browsing this forum: Google Feedfetcher and 12 guests