Posts by Gammeth • 445 points
8 posts
-
4
votes3
answers2626
viewsA: How to exchange information between classes?
To access a variable of another class, simply indicate that the variable is estática, which will allow you to access it without the need for an object: public static TextView t; To access from…
-
5
votes1
answer165
viewsA: Save table value
It may be interesting to open the file in a variable and edit the file by it at the end of the run: dofile("tester.lua") arquivo = assert(io.open("tester.lua", "w"), "Falha ao abrir arquivo") -- O…
-
3
votes1
answer155
viewsA: Check if a value corresponds to a value in an array
One way to solve this, is to search in all the equivalent age and only use the names that match with age! Ex: array1 = { {nome = "Paulo", idade = 13}, {nome = "Fernando", idade = 27}, {nome =…
-
6
votes3
answers644
viewsA: Insert string data into a table
From what I understand, you’re putting tables inside tables, and to call them, you need to pass her numbering! An example: for i = 1, #dados do print("NOME: ".. dados[i].nome) print("SEXO: "..…
-
5
votes1
answer190
viewsQ: Play in Löve does not work after compiling
I recently created a game based on löve, that once finished and tested, I decided to try to compile. I followed the tutorial compilation of the löve wiki, using: copy /b love.exe+GhostShield.love…
-
2
votes1
answer120
viewsQ: How to import Lua packages to Love?
I was observing the example files of the moon (more specifically the iup), and the dial.wlua example caught my attention a lot... I thought it would be interesting a game using this base, for time…
-
3
votes1
answer178
viewsQ: Error #1009 after first run
I’m a beginner in AS3, and I’m building a game for a course I’m doing. As I want the game to be well done, I decided to create a game with menu, where you can access the basic preferences (Turn off…
actionscript-3asked Gammeth 445 -
2
votes2
answers200
viewsQ: For loop does not start with Array
I’m new to AS3, and I’m trying to create a game for a course I’m doing, but I’m having trouble starting a loop that should test the collision between two objects called by AS3. Because objects are…