Getting started with AndEngine ...

  ... tutorials on how to use AndEngine.

Re: Getting started with AndEngine ...

Postby Nicolas Gramlich » Wed Aug 11, 2010 2:03 pm

Hi,

what do you mean with "Main"-Thread, the UI Thread ?
TouchEvents already come from the UI-Thread :P

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: Getting started with AndEngine ...

Postby Paul » Sat Aug 14, 2010 12:21 pm

Regarding the "Main Thread" questions, I think you could do a post in the tutorial section on the wonders and magic of creating TimerHandlers or just UpdateHandlers in general, since people can put their update logic or anything similar in there..
Paul
 
Posts: 92
Joined: Sat Jun 26, 2010 3:00 pm

Re: Getting started with AndEngine ...

Postby Shadaez » Sat Aug 14, 2010 12:57 pm

OOPS! Wrong thread.
Shadaez
 
Posts: 15
Joined: Sat Aug 14, 2010 7:12 am

Re: Getting started with AndEngine ...

Postby ngloom » Sat Aug 14, 2010 2:10 pm

Nicolas, all i want to say is it's a great and amazing job without doc !
wish to see the api doc very soon !
thanks your work again ~~~~
ngloom
 
Posts: 1
Joined: Sat Aug 14, 2010 2:31 am

Re: Getting started with AndEngine ...

Postby MAW016 » Sun Aug 15, 2010 11:53 pm

Paul wrote:Regarding the "Main Thread" questions, I think you could do a post in the tutorial section on the wonders and magic of creating TimerHandlers or just UpdateHandlers in general, since people can put their update logic or anything similar in there..

yes this could be very handy ;)
Black Hero owner
MAW016
 
Posts: 16
Joined: Fri Aug 06, 2010 6:50 pm

Re: Getting started with AndEngine ...

Postby Charliena » Tue Aug 17, 2010 8:34 am

Hello! I followed your tutorial with Eclipse (a newer one then the one you use) and I get two errors on the cameras.
public Engine onLoadEngine() {
this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
return new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.mCamera));
}


I get The constructor is undefined on both rows. What am I doing wrong? As a suggestion Eclipse thinks I should remove arguments to match Camera() and change mCamera to Camera.

Thanks for your help!
Charliena
 
Posts: 3
Joined: Tue Aug 17, 2010 8:31 am

Re: Getting started with AndEngine ...

Postby Mimminito » Tue Aug 17, 2010 11:18 am

This error means you have imported the wrong Camera class.
Do fix it, find the Camera Import statement at the top of your class, and delete that line.
Then press Ctrl+Shift+O and it will being a dialog box up, allowing you to choose which import you want. Make sure you select the AndEngine Camera Import.
---------------------------------------
Adam Goodchild
Your AndEngine Forum Moderator!
My Tutorials List
http://www.adam-goodchild.co.uk
---------------------------------------
Mimminito
 
Posts: 360
Joined: Wed Jul 21, 2010 3:08 pm
Location: Chelsmford, UK

Re: Getting started with AndEngine ...

Postby Charliena » Tue Aug 17, 2010 1:50 pm

Mimminito wrote:This error means you have imported the wrong Camera class.
Do fix it, find the Camera Import statement at the top of your class, and delete that line.
Then press Ctrl+Shift+O and it will being a dialog box up, allowing you to choose which import you want. Make sure you select the AndEngine Camera Import.

Okay, so Im supposed to import from the andengine? Because Eclipse only gave me the optiones of hardware or graphic from some androidimport.
Charliena
 
Posts: 3
Joined: Tue Aug 17, 2010 8:31 am

Re: Getting started with AndEngine ...

Postby Mimminito » Tue Aug 17, 2010 1:57 pm

Have you followed my guide on how to setup a project with AndEngine? Check it out in the Tutorials section...
---------------------------------------
Adam Goodchild
Your AndEngine Forum Moderator!
My Tutorials List
http://www.adam-goodchild.co.uk
---------------------------------------
Mimminito
 
Posts: 360
Joined: Wed Jul 21, 2010 3:08 pm
Location: Chelsmford, UK

Re: Getting started with AndEngine ...

Postby Charliena » Thu Aug 19, 2010 3:41 pm

I solved it. Thanks!
Charliena
 
Posts: 3
Joined: Tue Aug 17, 2010 8:31 am

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: Google Feedfetcher, Majestic-12 [Bot], michaelbraden, MSNbot Media and 28 guests