Mimminito's Tutorial List

  ... tutorials on how to use AndEngine.

Re: Mimminito's Tutorial List

Postby Ted Hughes » Fri Oct 15, 2010 3:32 pm

"Getting Started with Eclipse and andEngine" tutorial is excellent. Could not get this to work until I found your link to explain the googlecode repositories, Mercurial. Thank you
Ted Hughes
 
Posts: 63
Joined: Fri Oct 15, 2010 3:23 pm

Re: Mimminito's Tutorial List

Postby PepsiCar » Wed Nov 17, 2010 10:13 pm

Hello i'm new to AndEngine.

I started with this basic tutorials. I set up my development enviroment and i succesfully built and run hello world project with AndEngine (blue screen app).

Now i moved to next tutorial about drawing sprites:
http://code.google.com/p/andengineexamp ... ample.java

It should be easy but for me it is not. I built it right. I run it on the phone and than when sprite should appear, i get message on my phone: The application DrawSprite (process com.example.DrawSprite)has stopped unexpectedly. Please try again.

Debuger says everything is OK but phone and emulator dont. Please help me. What could be the problem?
I Loaded my image: human.png in to assets/gfx directory and everything.

I would be very very happy if anyone could help me :!:

Thank you
PepsiCar
 
Posts: 30
Joined: Wed Nov 17, 2010 10:04 pm

Re: Mimminito's Tutorial List

Postby JoxTraex » Sat Feb 19, 2011 2:43 am

Excellent thank you!
JoxTraex
 
Posts: 1
Joined: Sat Feb 19, 2011 2:43 am

Re: Mimminito's Tutorial List

Postby bhecox65 » Sun Mar 13, 2011 12:26 am

PepsiCar wrote:Hello i'm new to AndEngine.

I started with this basic tutorials. I set up my development enviroment and i succesfully built and run hello world project with AndEngine (blue screen app).

Now i moved to next tutorial about drawing sprites:
http://code.google.com/p/andengineexamp ... ample.java

It should be easy but for me it is not. I built it right. I run it on the phone and than when sprite should appear, i get message on my phone: The application DrawSprite (process com.example.DrawSprite)has stopped unexpectedly. Please try again.

Debuger says everything is OK but phone and emulator dont. Please help me. What could be the problem?
I Loaded my image: human.png in to assets/gfx directory and everything.

I would be very very happy if anyone could help me :!:

Thank you


That's not very helpful information for anyone to help you fix this problem. But, if you instead of clicking "Run DrawSprite" click "Debug DrawSprite", and it will run the program as much as it can, and then stop exactly where the error is. Eclipse will probably tell you what the error is in at least one of the views in the Debug perspective. Most likely a null pointer error of some kind. Your issue, I'm sure, is really simple, so you will find it using the debugger.
------------------------------------------------------------
Check out my site: http://www.debragames.com
I have one Android game out: Tap It!

It's free so download it now! :D
bhecox65
 
Posts: 31
Joined: Sun Aug 08, 2010 11:09 pm

Re: Mimminito's Tutorial List

Postby RufSemper » Sun Mar 13, 2011 11:57 pm

1st: Do what bhecox65 wrote
2nd:my 1st guess


I Loaded my image: human.png in to assets/gfx directory and everything


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.            
  2. this.mTexture = new Texture(32, 32, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
  3. this.mFaceTextureRegion = TextureRegionFactory.createFromAsset(this.mTexture, this, "gfx/face_box.png", 0, 0);
  4. this.mEngine.getTextureManager().loadTexture(this.mTexture);
  5.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

If you try to load your human.png and its bigger then 32*32 the texture size is your problem :-)
RufSemper
 
Posts: 56
Joined: Wed Mar 02, 2011 5:52 pm
Location: Germany

Re: Mimminito's Tutorial List

Postby pxr » Tue Mar 15, 2011 11:46 am

Thanks for the hard work Mimminito! Helped alot.
pxr
 
Posts: 3
Joined: Tue Mar 15, 2011 11:44 am

Re: Mimminito's Tutorial List

Postby oeN » Thu Jun 09, 2011 4:40 pm

thanks
Blog: link
My Android Apps: link
oeN
 
Posts: 15
Joined: Wed Jun 08, 2011 8:21 pm

Re: Mimminito's Tutorial List

Postby kblood » Sat Jun 11, 2011 6:24 pm

RufSemper wrote:1st: Do what bhecox65 wrote
2nd:my 1st guess


I Loaded my image: human.png in to assets/gfx directory and everything


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.            
  2. this.mTexture = new Texture(32, 32, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
  3. this.mFaceTextureRegion = TextureRegionFactory.createFromAsset(this.mTexture, this, "gfx/face_box.png", 0, 0);
  4. this.mEngine.getTextureManager().loadTexture(this.mTexture);
  5.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

If you try to load your human.png and its bigger then 32*32 the texture size is your problem :-)


Took me a while to figure out that a texture has to be made to move graphics to the ram, before they are put on the screen. Now it all makes more sense. I figured it out on my own eventually, I am not sure why it did not make any sense earlier. The two different sets of coordinates for animated sprites and so on really did not make much sense at first :)
kblood
 
Posts: 333
Joined: Wed May 25, 2011 10:13 pm

Re: Mimminito's Tutorial List

Postby reeegiii » Wed Aug 17, 2011 1:40 am

Can anyone please make a beginner's guide for making your character jump?
reeegiii
 
Posts: 38
Joined: Tue Jul 05, 2011 9:32 pm

Re: Mimminito's Tutorial List

Postby killer1390 » Tue Dec 13, 2011 10:52 pm

reeegiii wrote:Can anyone please make a beginner's guide for making your character jump?


If you are using Box2D, it should be a simple matter of setting its y velocity to a number.
killer1390
 
Posts: 1
Joined: Tue Dec 13, 2011 10:49 pm

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 40 guests