Ok! So I'm not noticing a While/Wend loop for setting things up.

Hi! Being new and spending a few days browsing around I’ve noticed there’s no main game loop when looking at code samples and tutorials. I was wondering if, because of the plethora of tutorials, code etc, out there, someone can point me in the right direction of what the absolute minimum is to get started?

Ta! [import]uid: 100627 topic_id: 29812 reply_id: 329812[/import]

Well, to answer your title… you can setup a main game loop by creating an enterFrame event listener. This caught me at first to as other engines I used had some form of a main game loop already in place.

You can create the main game loop using the code below.

[lua]local function mainGameLoop(event)
— do cool main game loop stuff
print(“do cool main game loop stuff”);
end

Runtime:addEventListener(“enterFrame”, mainGameLoop)[/lua]
As far as the tutorials go I would just go to http://www.learningcorona.com/ and a series that seems to match your goals. [import]uid: 147305 topic_id: 29812 reply_id: 119543[/import]

Perfect, Thank You! [import]uid: 100627 topic_id: 29812 reply_id: 119546[/import]

I completed my first App and released it before someone told me about the EnterFrame event!

I think it’s very hard for a beginner to get started here.

Maybe there should be a “Getting Started” section (there could be already) and go through some of the main things you need to know to get going.

Finding stuff when you don’t know what your searching for is hard.

Dave [import]uid: 117617 topic_id: 29812 reply_id: 119600[/import]

Well, to answer your title… you can setup a main game loop by creating an enterFrame event listener. This caught me at first to as other engines I used had some form of a main game loop already in place.

You can create the main game loop using the code below.

[lua]local function mainGameLoop(event)
— do cool main game loop stuff
print(“do cool main game loop stuff”);
end

Runtime:addEventListener(“enterFrame”, mainGameLoop)[/lua]
As far as the tutorials go I would just go to http://www.learningcorona.com/ and a series that seems to match your goals. [import]uid: 147305 topic_id: 29812 reply_id: 119543[/import]

Perfect, Thank You! [import]uid: 100627 topic_id: 29812 reply_id: 119546[/import]

I completed my first App and released it before someone told me about the EnterFrame event!

I think it’s very hard for a beginner to get started here.

Maybe there should be a “Getting Started” section (there could be already) and go through some of the main things you need to know to get going.

Finding stuff when you don’t know what your searching for is hard.

Dave [import]uid: 117617 topic_id: 29812 reply_id: 119600[/import]