Solar2D is the new name of the CoronaSDK development framework, used for creating high-performance, multimedia-rich applications, especially games, for iOS, tvOS, Android, Android TV, macOS, Windows, Linux or HTML5.Solar2D is based on Lua.
Questions tagged [solar2d]
23 questions
0
votes
0 answers
addEventListener: listener cannot be nil:nil
I'm creating a new game with Coronasdk, I need to make trees appear from the right of the screen and make them scroll to the left.
That's the code
local Trees = {} --I generate trees that appears randomly
local function…
0
votes
1 answer
Lua - Unable to restart the game
My game is pretty simple, it consists in avoiding some falling objects. When the player collides with the object three times, a message appears saying "Game Over". And here comes my problem, I want to add a restart button, but I don't understand how…

neminem
- 1
- 1
0
votes
1 answer
corona sdk / solar2d multiple moving objects
I have problems with making multiple objects with random movement speed.
For example, I need to make 1000 objects and move them with random speed in random direction.
OOP aproach doesn't work, but in love2d it works without any problems.
local…

Exorsky
- 15
- 3
0
votes
0 answers
How can to glue lua and python
I'm making a DBMS for my father's grocery store, I want to send the bills to the mobile numbers of the customers. So I'm thinking that Lua will handle the app interface and python all the backend work in Solar 2d. But I don't know how to build them…

Dhruv Chaturvedi
- 13
- 5
0
votes
1 answer
How to stop a character if the character in front of him is still
I don't know why my code doesn't work. I just want to stop the next character if the character in front of him is still. My thought was to setLinearVelocity(0,0) when their linear velocity is 0 so the next character know that he has to stop when the…

Jello
- 11
- 1
0
votes
1 answer
How to create and move a group of bouncing objects on Corona sdk/solar2d?
I already found a similar question on this website but the answers didn't really help.
I'm creating a game on Solar2d /Corona sdk and I'm trying to create multiple objects that bounce around the screen and even collide with each other changing the…

elena
- 1
- 1
-2
votes
1 answer
Lua function returning error after false "if statement"
I have a function to move a point over to different positions. I have a positions table containing all the Xs and Ys of each position, a position counter (posCounter) do keep track of where the point is and a maxPos, which is pretty much the lenght…

frankpujo
- 125
- 9