Will Lime be useful to make a tower defense game? If so, are you able to make a simple tutorial to illustrate how this can be done?
![]() |
|
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Tower Defense and Lime
It would certainly be possible, remember Lime is "just" a map loader. It then has some other nice features etc to make certain things easier.
You could simply use Lime to load up your games maps and position all the objects etc and then use regular Corona to do the rest of the game ( I'm sure there are tutorials for tower defences around ). In fact here is one for flash that could get you going in the right direction concept wise - http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/
You could easily use Lime/Tiled to define all your paths for the levels no problem, it would be up to you and your code to actually develop the logic on top of all this though.
Thanks for the reply. I am just wondering if the placement of the "towers" onto the right tile is something that Lime can help or I got to figure out how to do it myself?
Lime could help you there :-)
Within say a tap event from the user you could then use this function - http://justaddli.me/api.php?c=utils&m=screenToGridPosition - to convert that position to a grid position which then in turn you could convert back to a world position - http://justaddli.me/api.php?c=utils&m=gridToWorldPosition - giving you the real position of the centre of the nearest tile to where the user tapped. Then just place your new tower at that position.
You can also use Lime to get tiles at a certain position meaning you can detect which towers a user tapped on fr upgrades etc.

Forum: Report Spam + PM
send message and call to a person
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Application failed codesign verification - over and over again... ugh!!!!!!!
Copy/Paste support
Orientation Axes and Dimension Confusion
Looking for an Experienced Programmer To Work With Me And My Team!
Match Game Magic, my first app with Corona SDK
string replace function and sendmail
Performance Test
Audio Resume help
Button Counter
[SOLVED] How to get random numbers?