I just posted final articles (no. 14 and 15) of the full game tutorial series. Also as a bonus, included full game project source code ready to be downloaded.

Traps, different platform types
Level complete window

Now I would like to post some new articles generally about and-engine. I am planning to post some more advanced physics articles, about joints etc.

Cheers, Matthew.
Solidux
2/28/2013 11:53:16 am

Thank you very much XD

Reply
monhoo
2/28/2013 01:24:35 pm

Thank you. but i have one question. How to change orientation Portrait only gamescene. ?

mainmenu is landscape, splash is landspace, loading is landspace

ResourcesManager.getInstance().activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
GameActivity.Oreintation_portrait();

Reply
Matthew
3/1/2013 02:47:41 am

You might specified orientation in android manifest file.

Reply
vishal
2/28/2013 03:08:57 pm

Hi matim, thanks for the complete source,

I am encountering a problem while running the game. There is no compiler error. On run... it's showing splash screen, then menu scene and on clicking play.. it crashes ...

Following I observed in Logcat

could not find method org.andengine.extension.physics.box2d.PhysicsFactory.createFixtureDef, referenced from method com.matimdev.scene.GameScene.loadLevel

VFY: unable to resolve static method 3934: Lorg/andengine/extension/physics/box2d/PhysicsFactory;.createFixtureDef (FFF) Lcom/badlogic/gdx/physics/box2d/FixtureDef

Please suggest ...
As per ur kind reply, I updated to anchor center and there is no compiler error issue any more. but... this is a new issue i have now ... Plz help..

Reply
Matthew
3/1/2013 02:42:38 am

It means box2d extension has not been linked properly with your game source.

Reply
vishal
3/1/2013 05:11:26 pm

yes .. I too think so. I tried many andengine's extension but still it's a poblem. Would be please help me by sending the URLs from where to download AndEngine gles2 Anchor Center and Physics Box2D extension ....... I shall be grateful to you. Thanks in advance.

Matthew
3/1/2013 05:31:14 pm

@vishal

Download them from official Nicolas`s git:

https://github.com/nicolasgramlich

Find repos you need (andengine) and box2d extension, than while checking out source using eclipse, make sure to DOWNLOAD PROPER branch : )

vishal
3/1/2013 07:02:01 pm

thanks 4 fast response... but my eclipse is showing some errors with
AndEnginePhysicsBox2DExtension[AndEnginePhysicsBox2DExtension GLES2] ..........

AndEnginePhysicsBox2DExtension/gen already exists but is not a source folder. Convert to a source folder or rename it.

Reply
vishal
3/1/2013 07:02:07 pm

thanks 4 fast response... but my eclipse is showing some errors with
AndEnginePhysicsBox2DExtension[AndEnginePhysicsBox2DExtension GLES2] ..........

AndEnginePhysicsBox2DExtension/gen already exists but is not a source folder. Convert to a source folder or rename it.

Reply
vishal
3/1/2013 07:02:18 pm

thanks 4 fast response... but my eclipse is showing some errors with
AndEnginePhysicsBox2DExtension[AndEnginePhysicsBox2DExtension GLES2] ..........

AndEnginePhysicsBox2DExtension/gen already exists but is not a source folder. Convert to a source folder or rename it.

Reply
Matthew
3/1/2013 09:31:01 pm

Just delete gles2 branch, and download anchor center.

Reply
josh
3/6/2013 04:16:21 am

hallo matthew,

could you make a little tutorial, or extension for the full game tutorial how to make analog contoller and a jump button, so that it's possible to move the hero with analog controller and let him jump with the button?

cheers
josh

Reply
vishal
3/7/2013 01:06:38 am

hi . all the errors are resolved ... but while I run in eclipse, the game is running only for a fraction of seconds and dies... what may be the problem.
The emulator says : Application failure detected... Plz suggest. I search the whole internet .. but found ur tutorial as the best when it comes a simple platform game in android

Reply
Matthew
3/7/2013 01:55:04 am

Simply check logcat from eclipse, error log should provide more details about possible reason of this issue.

Reply
Max
3/7/2013 06:17:20 pm

Hello. Can you help me? I need pass level variable from level scene to game scene. How can I do this?

Reply
Max
3/10/2013 05:20:44 pm

Anyone?

Reply
Sven
4/16/2013 07:23:16 am

Description Resource Path Location Type
The method getConfigChooserOptions() is undefined for the type RenderOptions GameActivity.java /Jumper Game Tutorial/src/com/matimdev line 42 Java Problem
SimpleLevelLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 136 Java Problem
The import org.andengine.util.level.simple cannot be resolved GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 28 Java Problem
The import org.andengine.util.level.simple cannot be resolved GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 27 Java Problem
The import org.andengine.util.level.EntityLoader cannot be resolved GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 25 Java Problem
The import org.andengine.util.adt.color cannot be resolved GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 24 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 142 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 140 Java Problem
The import org.andengine.util.adt.align cannot be resolved GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 23 Java Problem
Color cannot be resolved to a variable LoadingScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 15 Java Problem
EntityLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 140 Java Problem
The import org.andengine.util.adt.color cannot be resolved LoadingScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 5 Java Problem
SimpleLevelLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 136 Java Problem
HorizontalAlign cannot be resolved to a variable GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 267 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 156 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 154 Java Problem
EntityLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 154 Java Problem
Color cannot be resolved to a variable GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 277 Java Problem
The method setAnchorCenter(int, int) is undefined for the type Text GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 268 Java Problem



Hi , I'm trying to run you're exemple , but for some reason I get these errors and I cant figure out why . If you would be so kind and point me in the right direction! Did not modify anything in the Jumper Game Tutorial.

Thank you in advance

Reply
Sven
4/16/2013 08:50:32 am

Managed to fix what was wrong in the beginning , it was not the center anchor thing .. but now when i hit play this happens ... hopefully i will hear from you .

Thx anyway for the tutorial.


04-16 22:46:36.293: E/AndroidRuntime(2870): FATAL EXCEPTION: UpdateThread
04-16 22:46:36.293: E/AndroidRuntime(2870): java.lang.NoClassDefFoundError: org.andengine.extension.physics.box2d.FixedStepPhysicsWorld
04-16 22:46:36.293: E/AndroidRuntime(2870): at com.matimdev.scene.GameScene.createPhysics(GameScene.java:288)
04-16 22:46:36.293: E/AndroidRuntime(2870): at com.matimdev.scene.GameScene.createScene(GameScene.java:85)
04-16 22:46:36.293: E/AndroidRuntime(2870): at com.matimdev.base.BaseScene.<init>(BaseScene.java:41)
04-16 22:46:36.293: E/AndroidRuntime(2870): at com.matimdev.scene.GameScene.<init>(GameScene.java:52)
04-16 22:46:36.293: E/AndroidRuntime(2870): at com.matimdev.manager.SceneManager$1.onTimePassed(SceneManager.java:116)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.handler.timer.TimerHandler.onUpdate(TimerHandler.java:94)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.handler.UpdateHandlerList.onUpdate(UpdateHandlerList.java:47)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.Engine.onUpdateUpdateHandlers(Engine.java:602)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.Engine.onUpdate(Engine.java:589)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.LimitedFPSEngine.onUpdate(LimitedFPSEngine.java:51)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.Engine.onTickUpdate(Engine.java:552)
04-16 22:46:36.293: E/AndroidRuntime(2870): at org.andengine.engine.Engine$UpdateThread.run(Engine.java:842)

Reply
Kafi Arifin
7/2/2013 03:10:51 am

you can download latest version of the engine, quoting author.

https://github.com/nicolasgramlich/AndEngine/tree/GLES2-AnchorCenter

Reply
Kapil Rijhwani
8/6/2013 08:49:19 pm

received following errors what to do ???
Description Resource Path Location Type
SimpleLevelLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 137 Java Problem
EntityLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 141 Java Problem
SimpleLevelLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 137 Java Problem
The method getConfigChooserOptions() is undefined for the type RenderOptions GameActivity.java /Jumper Game Tutorial/src/com/matimdev line 42 Java Problem
The method setAnchorCenter(int, int) is undefined for the type Text GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 269 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 157 Java Problem
HorizontalAlign cannot be resolved to a variable GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 268 Java Problem
EntityLoader cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 155 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 155 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 141 Java Problem
SimpleLevelEntityLoaderData cannot be resolved to a type GameScene.java /Jumper Game Tutorial/src/com/matimdev/scene line 143 Java Problem

Reply
Ning
12/26/2013 12:05:42 am

I have encountered the same errors, could not fix it either.
SimpleLevelLoader, SimpleEntityLevelLoaderData,
EntityLoader, also the getConfigChooserOptions (method).

need some help..

thanks. :)

Reply
ravi
1/27/2014 09:18:11 pm

Import org.andengine.util.level.simple.SimpleLevelLoader

similarly ..simple.SimpleLevelEntityLoaderData

Reply
9/21/2014 08:30:26 pm

I'm Matthew faulty statements engineOptions.getRenderOptions().getConfigChooserOptions().setRequestedMultiSampling(true);
and it turns out that :
The method getConfigChooserOptions() is undefined for the type RenderOptions

Reply



Leave a Reply.

    Author

    I am 19 years old android game developer from Poland, currently live in United Kingdom.