how to make level button that slide like angry bird

2 replies [Last post]
eng.tareqali's picture
eng.tareqali
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 23 Dec 2010

how to make slide button w levels , like angry bird .

there are 2 type .

1- first level menue witch has main levels (( I think 7 main levels )) how to make it .

2- when you press the main button levels . under that many levels . that have small square w number of each level .

any idea for that ??

Replies

eng.tareqali's picture
eng.tareqali
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 23 Dec 2010

no clue , I wish someone answer this answer

nick_sherman's picture
nick_sherman
User offline. Last seen 1 week 3 days ago. Offline
Joined: 23 Sep 2011

You need to break the problem down into smaller parts, and then find a solution to each part within the API documentation or on the forums....it's all there.

You might start by displaying a background and creating a lua table to hold the status of each level (locked, unlocked, number of stars etc), then use a for loop to display level select buttons and text underneath depending on the status of the level.

Once you learn the basics, such as displaying objects, loops, tables, saving/loading (I recommend the Ice library for this), event listeners etc, you can program your level select screen easily.

I learnt mainly by picking apart the 'Ghosts v Monsters' sample code. I played with the code, adapted it, broke it, fixed it again, until I understood exactly what was happening and why.

If I get stuck I turn to google (much better than the search facility on here). Just type your problem with the word corona and chances are someone else has asked the same thing before.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.