All Questions
2,340
questions
0
votes
0
answers
11
views
lua solar2d. player passes through obstacles and incorrect transition to another level
lua solar2d. I have a player and obstacles, I grouped the hitbox and texture to move together, but then the event of collision between the player and the obstacle is not processed, without the group ...
0
votes
0
answers
15
views
timer.performwithdelay() works without delay from transition.to ()
(if anything, this post has been translated through a translator from Russian into English)
For my play, I need the object to change smoothly with a delay, of course I decided to use transition.to() ...
0
votes
1
answer
53
views
trouble decompiling apk
I have been trying to find the code of this game called House of the Lost for a long time. It is for a platform called the Ouya. I believe it was made using corona sdk. Also if you do manage to do it ...
0
votes
1
answer
43
views
Unable to specify a table object to a event listener in Lua
I'm following a Solar2d tutorial (https://docs.coronalabs.com/guide/programming/index.html) and I'm trying to combine the first couple of lessons into a balloon popping game. I would like to have ...
0
votes
1
answer
48
views
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
-----------------------------------------------------------------------------------------
--
-- main.lua
--
----------------------...
-1
votes
1
answer
165
views
'end' expected (to close 'function' at line 102) near <eof>
I am getting this error
'end' expected (to close 'function' at line 102) near
button:addEventListener("tap", function()
buttonText.isVisible=false
button.isVisible=false
sun.isVisible=...
1
vote
1
answer
109
views
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'...
1
vote
1
answer
94
views
string passed as an argument turns into a table. lua
I have a function that whenever I pass a string into, it turns into a table and I don't know why. Any help is very appreciated. Here's my code:
function gotoSkip(para)
print(para)
print(type(...
0
votes
1
answer
771
views
Decompile apk game built in corona sdk
A long time ago, I and a friend did a mini-game with corona sdk. We lost the source code and this week I finded the apk lost here.
I tried extract the .apk with ApkTool (https://ibotpeaches.github.io/...
0
votes
1
answer
42
views
addEventListener is returning nil Lua
I get errors when i run this. Its with the addEventListener. It returns a nil. Im using Solor2d(Corona SDK). Thanks for any help
local button
local function changeScenes()
composer.gotoScene("...
0
votes
0
answers
54
views
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 ...
1
vote
0
answers
98
views
I need black bars on the left and right sides Corona sdk for Android
How a can make game with not all screen in horizontal orientation? I need black bars on the left and right sides like on the picture.
my config.lua
application =
{
content =
{
width = 320,
height = ...
-2
votes
1
answer
37
views
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 ...
0
votes
1
answer
93
views
why is this error coming out in Corona sdk?
12:39:31.002 ERROR: Runtime error
12:39:31.002 C:\Users\User\Documents\Corona Projects\MATH FOR CHILDREN\level1.lua:207: attempt to call method 'setFillColor' (a nil value)
12:39:31.002 stack ...
0
votes
1
answer
119
views
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, ...