Questions tagged [corona-sdk]
Corona SDK is a cross-platfrom software development kit for both Android and iOS.
53
questions
1
vote
1
answer
72
views
Endless runner player detect player drop
Starting to learn/write my first game using Corona/Solar2d game engine.
And have a very basic question on how do people handle a such this situation which I assume should be common to any game engine.
...
0
votes
0
answers
71
views
Facing issues trying to Parse JSON in Lua
Problem statement:
Need help trying to load a JSON file into a table array in Lua for Corona SDK development.
My Objective:
Call specific data from JSON file to my application by using key value ...
1
vote
0
answers
63
views
Unit testing graphics [duplicate]
What is the standard (if there is one) method which professional games developers use to unit test (or closest equivalent) graphics output?
I am developing with Corona SDK and I would like to test ...
1
vote
1
answer
64
views
How to automate baking pizza in Corona SDK?
I'm writing a game about making pizza in Corona SDK. When you buy chefs, the new chef is supposed to make some pizzas on its own like automation.
I tried everything I knew about, I couldn't think of ...
0
votes
1
answer
189
views
How can I fix this code to spawn multiple types of enemies on the same point with the Corona SdDK?
I have this code to spawn a simple enemy outside the window:
...
0
votes
1
answer
42
views
How to calculate the magnitude of the drag in Corona-sdk?
I'm making a game on Corona that launches a ball.
The force is based on the magnitude of the drag: the larger is the drag -> the higher is the force.
I'm having some trouble to do this, because I ...
7
votes
2
answers
868
views
Calculating Linear force required to hit a specific vertex on a parabola
The idea is a user presses somewhere on the screen and the program will fire an object in a parabola shape from a defined start position that has it's vertex where the user touched the screen.
I have ...
1
vote
1
answer
328
views
How can I clear the screen on Corona SDK
I have objects on the screen that create the main menu, and I want the the screen to clear when I get press the play button. I did it the way the other question on this subject said, but when I ...
0
votes
1
answer
93
views
Corona SDK, do I need to pay for it?
I'm a single dev making simple mobile games. I was looking at corona sdk for my next project. I don't understand what the difference between the paid version and the free version is. It seems that ...
0
votes
2
answers
91
views
How can I move objects on to positions declared by their clicking order?
I'm trying to create a quiz game with clickable letters. How can I move them to another area based on their clicking order?
Though you probably already understand what I'm trying to ask, lets clarify:...
0
votes
1
answer
49
views
Reading filename(image) to a string using corona
Is there a way to get the filename from image and read it to a string using corona?
I can't find any help regarding this issue.
In example, if I had:
...
0
votes
0
answers
15
views
Positioning of the game object after scaling the game background [duplicate]
i'm creating a game using Corona SDK i have a map and with ball and some other object moving on this map
and i'm using the ultimate config.lua file for scaling background based on device screen ...
1
vote
1
answer
315
views
moving object on game background after scaling it based on screen size
I am creating a game using Corona SDK, I have a map with a ball and another other object that moves on the map.
I use the the ultimate config.lua file for scaling ...
0
votes
1
answer
680
views
How to create soft Icecream like particles with Liquidfun and Corona
Currently using the "elastic" flags for particle behavior, which looks decent when it is flowing downwards but when the icecream collects in cup it is too liquidy. Also this gives it a springy bounce ...
-1
votes
2
answers
399
views
Why does Corona SDK not build a .apk file?
I'm trying to put a game I created in Corona SDK on my Galaxy S5. I go to the Corona Simulator, click Build for Android.. Then I fill out the information, and then I hit build. The problem is, it's ...
3
votes
2
answers
2k
views
Corona SDK, display.contentWidth and height does not get the expected values
I'm drawing a simple rectangle to fill the entire screen.
local bg=display.newRect(0,0,display.contentWidth,display.contentHeight)
Instead of drawing a full screen ...
3
votes
3
answers
404
views
Sounds and buttons show up in simulator, not in an Android device [closed]
I'm a noob in android game development, started with corona sdk and outlaw.
My project runs just fine with the corona simulator on my win8, however, when building it to my android device (galaxy s3) ...
0
votes
1
answer
328
views
Phone crash when try to use vibration on Android
Im developing an app that when you click a button the phone has to vibrate, the issue is that the phone just chashes. Saing that I need permitions to vibrate. I've already set this permition in the ...
1
vote
3
answers
2k
views
Is there a tool to batch resize images to nearest power of two, on a specific side? [closed]
For example, i have multiple images with similar properties like width = 66 and height = 62, i would need the resulting image to ...
0
votes
1
answer
498
views
file:write restarts Corona app
I am attempting to implement an auto-save feature into a mobile game. I have the following code writing to the save file:
...
-2
votes
1
answer
2k
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 ...
-2
votes
1
answer
300
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 ...
0
votes
2
answers
3k
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, ...
2
votes
1
answer
513
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
2
answers
642
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
2
answers
591
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.
...
2
votes
2
answers
233
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 ...
0
votes
1
answer
3k
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 ...
1
vote
3
answers
3k
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
...
2
votes
1
answer
323
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):
...
0
votes
1
answer
758
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 ...
1
vote
1
answer
310
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 ...
-1
votes
1
answer
344
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 and ...
0
votes
1
answer
354
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 ...
2
votes
1
answer
1k
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 ...
2
votes
1
answer
2k
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 ...
2
votes
3
answers
9k
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?
I've already searched in stackoverflow.com and gamedev.stackexchange.com, but I could not find a simple solution for ...
1
vote
1
answer
572
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
1
answer
641
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, ...
2
votes
2
answers
3k
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 rectangle image display object in Corona Lua?
This is what I tried:
Reviewed API and could not find a "border" method/property on ...
3
votes
3
answers
7k
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 ...
-7
votes
1
answer
445
views
Accelerometer to control handstans man? [closed]
In my game i have to control handstand man using accelerometer.
i used this code:
...
1
vote
1
answer
521
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 ...
3
votes
1
answer
296
views
Corona SDK Continuous Integration
Is it possible to build corona applications from console?
Or how can I automate build process?
1
vote
2
answers
7k
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 ...
3
votes
5
answers
1k
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
2
answers
3k
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?
0
votes
2
answers
2k
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 ...
2
votes
1
answer
695
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:
...
2
votes
1
answer
375
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 ...