Corona SDK is a cross-platfrom software development kit for both Android and iOS.

learn more… | top users | synonyms

5
votes
2answers
2k views

Physics or Time-Based Animation In Corona SDK (iOS) Using Box2D

I am part way through creating a Doodle Jump clone for iOS using Corona SDK. I'm currently using the physics engine (box 2D). It's not a straight clone, but I need the basic principles in place to ...
3
votes
3answers
2k views

How do I move an existing display object behind another in Corona Lua?

If I have two existing display objects in Corona, lets say do1 and do2. Assume do1 is drawn first then do2, so do2 will be on top. Is there a way to say "put do2 behind do1" in corona Lua? If yes can ...
2
votes
1answer
323 views

Is it possible to build an app with Corona with only a PC, and expect it to reasonably run well on an iPhone?

So I understand that Corona allows me to "write once," and deploy on both iPhone and Android. And I understand that I cannot get any iPhone app into the app store without having (at the moment of ...
2
votes
2answers
78 views

Breakout intersection logic issues

I'm learning Lua and thought I should try my hand at making a Breakout clone. It is pretty much playable, but there seems to be odd intersection logic at some points, specifically the ball-brick ...
2
votes
4answers
734 views

Do you have to rewrite Corona SDK apps for different devices?

I am using the trial windows edition of Corona, but I want to develop for iOS - the windows version only supports android, so my question is will I have to rewrite any parts of my application for iOS ...
2
votes
2answers
2k views

physics.addBody() with custom shapes in Corona SDK

Does the physics.addBody() only work with Circles and Rectangles? Or is it possible to physics.addBody() on vector shapes or sprites or with masks or something?
2
votes
1answer
129 views

How does one update the physical state of an object after scaling it in Corona?

I am new to Corona and Lua. I have the following question: I have an object cake with these physics parameters (doesn't really matters): ["cake1"] = { { ...
2
votes
2answers
1k views

How do I draw a border around a display object in Corona Lua?

What would be the easiest way to draw a thin border around a display object in Corona Lua? You could assume it's rectangular image display object. EDIT - re "this question shows no research ...
2
votes
1answer
212 views

Corona SDK Continuous Integration

Is it possible to build corona applications from console? Or how can I automate build process?
2
votes
1answer
611 views

help animating a player in Corona SDK [closed]

Working on a game in the Corona SDK with Lua and I need help so the player animates on the line drawn. Right now he animates at the beggining and the end but not on the line. Here is the player code: ...
1
vote
1answer
87 views

How to set speed based on screen size

I am making a breakout clone for mobile and was wanting to make the ball speed to be related to the screen size. Larger screen would mean faster speed. Right now I have it set like so: ...
1
vote
2answers
98 views

How can I clear the entire display in Corona?

How can I clear the entire display? I have tried doing display.remove(obj) and obj:removeSelf() on everything that was drawn, but it seems to miss a few things and I am unsure why. A very basic ...
1
vote
1answer
721 views

For a real-time PvP game, what network service would get the job done?

The game is between two players, real time, and has to be very synchronized - latency will certainly favor one player over the other. It's built for iOS and Android and every touch on one end has to ...
1
vote
2answers
4k views

Efficient tile maps in Corona SDK

I need to create a tile map based level system for Corona SDK that loads files created with Tiled [1]. It also needs to support user touch scrolling and zooming. I've searched the Corona forums for ...
1
vote
2answers
83 views

Is it possible to develop web-based games using Corona SDK?

Some clients asked me to develop 2D web-based games and later on they might want to release those games on mobile platforms. I know Corona and I don't want to rewrite my code twice. Is it possible to ...
1
vote
1answer
856 views

Android performance/issues with Corona SDK?

I know this is a fairly broad question. We are looking to develop a mobile game and want to use a multi-platform engine/SDK. We like what we see with Corona but in doing some reading, we are seeing a ...
1
vote
1answer
112 views

update image properties

Is there a way to update the location of an image? I'm currently calling my image dynamically using: itemImage = display.newImage(inventory[t.ID][1]) t. being my target ID. But in order for ...
1
vote
1answer
466 views

Corona SDK: Animation takes a long time to play after “prepare” step

First off, I'm using the current publicly available build, version 2011.704 I'm building a platformer, and have a character that runs along and jumps when the screen is tapped. While jumping, the ...
1
vote
1answer
318 views

what's wrong with this Lua code (creating text inside listener in Corona)

If you double/triple click on the myObject here the text does NOT disappear. Why is this not working when there are multiple events being fired? That is, are there actually multiple "text" objects, ...
1
vote
1answer
372 views

How to increase force for every touch?

In my game the character can fall in two directions. The user clicks right or left button to "push" the character to balance them, so they don't fall. I'm not sure how to increase the forces applied ...
1
vote
0answers
31 views

Overlay scene not showing

I have 2 scenes: One main scene with a button, and another scene with only 1 text. button action in Main Scene: local options = { effect = "fade", time = 400, params = { ...
1
vote
3answers
418 views

corona sdk scale images

How to scale images to full screen on all devices, i want to use % The method I've seen so far is to define pixels image_variable_name = display.newImage( "testimage.jpg", 100, 300 ) I want to do ...
1
vote
0answers
413 views

Corona sdk events dispatched with dispatchEvent() are handled directly upon call. Why so? [closed]

I noticed to my surprise that an event created with dispatchEvent(event) gets handled directly when called, and not together with other events at a specific phase of the frame loop. Two main reasons ...
1
vote
1answer
527 views

Rotating an object at the user specified speed in corona

I am developing a globe animation ,in which the speed of the rotation changes with the length of the user's drag event.The globe when touched and moved attains positive acceleration,reaches maximum ...
0
votes
1answer
312 views

How to shoot on direction of touch

I'm new to the Corona SDK(and I also suck in trigonometry) and I'm trying to achieve this: Shoot a bullet from the player, towards the direction of the point the user touched, but always with ethe ...
0
votes
1answer
214 views

How to generate an explosion? [closed]

I'm currently working in an Angry Bird-esque game, where the user flings a bomb at buildings and the bomb explodes. How do I create explosions in Corona? Essentially some sort of area of effect ...
0
votes
1answer
3k views

Isometric 2D game without tiles. Is there a solution?

Is it possible to create an isometric view of the game without the use of tiles Looking at this forum and stackoverflow.com and gamedev.stackexchange.com. (I work with Corona SDK and could not find a ...
0
votes
2answers
684 views

In Corona SDK, how do you extract the x1, y1, x2, and y2 coordinates from a line display object?

I used this command to create a line: local myLine = display.newLine( 0,-110, 27,-35 ) How can I get the coordinates from myLine? I've looked here and here but the closest thing I could find is ...
0
votes
1answer
44 views

Moving background animation

How can I create a moving background animation with corona like in this game? https://www.youtube.com/watch?v=dyXxyApKtvM it looks like it uses a single image and stretches it in a loop. I've search ...
0
votes
2answers
96 views

LUA - Keeping track of game state for a digital card trading game

I am building a card game. Let's say it's similar to Magic the Gathering, Hearthstone, etc. The problem I am trying to figure out is how to architect "auras" and how much damage each card takes. ...
0
votes
1answer
267 views

A specific but basic tutorial for Corona SDK? [closed]

I have been looking at Corona SDK and it would be helpful if I could see a tutorial/example to accomplish the following: Load an image as a background/map Draw a circle on the screen user can tap ...
-1
votes
1answer
289 views

What is the current state of 2D game SDK's [closed]

There seem to be so many to choose from. SDL Cocos2D-x Cocos2D-iphone Corona Unity I am having a very hard time looking these over to decide why I want to use one over the other. Advice on what ...
-2
votes
1answer
120 views

How should I start with Android development? I am basically a PHP HTML JAVASCRIPT developer [closed]

I am a PHP developer wanting to learn Android game programming. I tried java with ADT and android SDK, but I found Java confusing because of its complex Object-Oriented structure. I've heard we can ...
-5
votes
1answer
1k views

Which programming language is used to develop an app in corona?

What is Corona & Which programming language is used to develop an application in corona? What physics Engine is corona using? and any other information that is absent in their site?
-6
votes
1answer
349 views

Accelerometer to control handstans man?

In my game i have to control handstand man using accelerometer. i used this code: function acc:accelerometer(e) if(e.yGravity > 0.1 and e.yGravity < 0.2)then ...