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
24
votes
5 answers
How to install the libwebkitgtk package on Ubuntu 20.04 LTS?
So I am trying to install Solar2D (formerly known as Corona SDK) to make a mobile game. After installing the dependencies, when I run Solar 2D I get the following error:
/home/user/CoronaSimulator/CoronaSimulator: error while loading shared…

Aniket Badole
- 417
- 1
- 4
- 5
2
votes
1 answer
Are hard-coded math operations performed at compile time or run time in lua
I know not all compilers do that but does lua do it?
I have this written 15 * 1.75 * 2 I can just leave a comment line and leave the calculation there, in order make it still understandable but leaving it like the way it is better and I am curious.

Semih
- 23
- 3
1
vote
1 answer
I can't find what makes the error, does anyone know how to fix it?
I was following a tutorial and did exactly what it showed but it doesn't work and I can't figure out why.
-----------------------------------------------------------------------------------------
--
--…

Aise Quinn
- 11
- 4
1
vote
1 answer
How can I set transition.to to continue in the same direction with the same velocity once it has arrived at the set point?
Hi I am new to coding and I am using Lua and solar2d, trying to transition object1 via another object2's co-ordinates and for object1 to continue along the same path with the same velocity if it doesn't hit object2.
I can easily transition to the…

LeapingJag
- 11
- 1
1
vote
1 answer
transition in different time in Solar2D (ex-CoronaSDK)
Is there a way to prevent the characters starting at the same time? I tried this but every single character still starts the action the moment the animation starts even if I added the delay.
--runningPG1.. runningPG5 have attached a sprite and…

Jello
- 11
- 1
0
votes
0 answers
solar2d (corona) not building android apk on linux android-template.zip doesn't exist
starting with a new solar2d install built from source on linux, create an empty project, make no changes, it builds and runs on linux, but does not build the android apk, errors out like this:
BUILD…

jmarina
- 333
- 1
- 2
- 8
0
votes
1 answer
how do I define a multicomponent variable in Lua (using Solar 2D)
I've been trying my hand at lua and tried to draw a rect to the screen
-----------------------------------------------------------------------------------------
--
--…

Kaj van Veen
- 11
- 3
0
votes
0 answers
How in solar 2d to save files on different devices (Android, Ios, Windows) to downloads in internal storage?
I need to save it in an application created in solar 2d, so that after saving it, it appears in downloads as a downloaded file
I haven't found anything on the internet about this

C2G
- 1
- 2
0
votes
0 answers
Camera Permission denied for HTML5 QR Code scanner in solar2D Native NewWebView
I made a Web App in asp.net which scans QR Codes. I used jquery plugin minhazav qr code reader. It works fine with all the browsers like chrome, safari, opera etc.
Now I wanted to convert it to mobile app and I chose solar2D platform.
I used Native…

Lizaf Rim
- 1
- 1
0
votes
1 answer
How to convert a string to a table in the Solar 2D
I need to convert "{table = {}}" to a table.
How to do it in solar 2d
The code below does not work. Tell me what's wrong with it
Please help me find a solution
actionTable = {projectsSettings = {projects = {"Default"}},settings = {projectName =…

C2G
- 1
- 2
0
votes
0 answers
Solar2d assets export android not found
I'm using solar2d "corona labs", I add an image to the button and it works on windows when I export to android it doesn't work with an error on the black open screen.
I believe I have to inform the path using:
--> system.ResourceDirectory
but I…

CMaia
- 3
- 2
0
votes
1 answer
Solar2D add dependency for yookassa Java heap space error
I am trying to create a native android plugin for Solar 2D.
When I add the dependency "implementation 'ru.yoomoney.sdk.kassa.payments:yookassa-android-sdk:6.5.6'" to the build.gradle of the plugin module, an error appears when building the project -…

Daniil Andashev
- 154
- 1
- 9
0
votes
0 answers
How to update text on a loop in Lua/Solar2d
I'm trying to make a part of a program that's a timer through two loops. The timer will repeat a certain number of times (the it variable) hence the first loop. The second loop is the actual timer. For a certain number of seconds, every second it…

Nicholas O'Neal
- 21
- 2
0
votes
0 answers
Timer problems in Solar2d/Lua
I'm trying to make a timer that goes on repeat a certain number of times, but it just comes out as an infinite loop. In the following code, only s is ever printed never a, so the program isn't even entering the timer. Any help would be really…

Nicholas O'Neal
- 21
- 2
0
votes
2 answers
randomseed problem - same seed, different numbers on different platforms
We try make same random levels in our game. So, we use randomseed (Lua) with same seed number. We tried more iOS devices and everything is OK. We see same numbers, same levels for each seed. But if we tried same randomseed on Android devices, it is…

buffy.cz
- 66
- 5