Questions tagged [gideros]

Gideros is a free and open sourced mobile first app development framework. Develop apps in Lua and build locally and deploy to iOS, Android, Windows Phone/RT, OSX/macOS, win32 as well as HTML5.


Gideros features:

  • free to use, no payment to remove splash screens
  • open source, OpenGL/C/C++ engine
  • Lua invoked, C side implemented code profiler
  • instant testing locally and on networked devices with the included Player
  • export XCode, Android Studio and Visual Studio projects...
  • ... or build Android, win32 and HTML5 directly from IDE
  • extend with C/C++/ObjC/Java plugins
  • online fiddles

Documentation

42 questions
3
votes
1 answer

Lua Gideros: Call function with multiple parameters

In my game that uses Gideros Studio, I have a function that has multiple parameters. I want to call my function on one parameter, and then later on another. Is this possible? Here is my function: local function wiggleroom(a,b,c) for i = 1,50 do …
Henry V
  • 195
  • 1
  • 7
3
votes
1 answer

read line on Gideros without carriage return

I tested the following code on LuaEdit and stores a string just like I want it. local lineVal = myFile:read("*line") However when I test it in Gideros, it stores a string with the line plus a carriage return, which I don't need. How do I get only…
Adocad
  • 731
  • 1
  • 11
  • 27
2
votes
1 answer

How to make my Gideros game adaptable to all screen sizes?

I am quite new to Gideros and game development as well. I am trying to build a game, it looked fine with the Gideros player, but when I tried with an Android phone, the background was way too small. I changed its properties to autoscaling so as to…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
2
votes
2 answers

Create a list of tasks to do in Lua

I'm creating a turn-based game in Gideros (which uses Lua) and I'm running into a problem of recording the events of each actor. I want the player to be able to set a path, direction, and fire event for every actor they control. I had an idea of…
Taslem
  • 65
  • 8
2
votes
1 answer

Gideros GTween Event Listener

I'm trying a GTween example from the following link Gideros GTween with Easing The example doesn't work out of the box, so I dug into the source code of GTween and added the following lines to my example in order to allow event dispatching. local…
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155
2
votes
0 answers

weird situation while using timer and movie clip in giderous studio

I'm currently using giderous studio to make a tower defense game. However the code doesn't run as expected. I made a function that make the monster in the game move according to the route settled in a JSON file. The move process go well EXCEPT the…
Peter Chan
  • 63
  • 1
  • 4
2
votes
1 answer

How do I build a Gideros project for Android with Ant?

That's it, actually. I prefer not to use Eclipse, and want to use the command line. I've tried to just build it without doing anything special, but it gave me errors like: package com.giderosmobile.android.player does not exist cannot find symbol…
Darkwater
  • 1,358
  • 2
  • 12
  • 25
1
vote
3 answers

How to get an Array of Meshes

myMesh = {} myMesh[0].x = 30 Nope... doesn't work. myMesh = Mesh.new{} myMesh[0].x = 30 Nope... no go. An array of meshes should be possible, but I don't know how. Can someone help? Thanks Edit: Thanks for your responses. Pardon me for this stupid…
Jillinger
  • 172
  • 2
  • 11
1
vote
1 answer

How to create 3d mesh vertices in Gideros

I'm using Lua for the first time, and of course need to check around to learn how to implement certain code. To create a vertex in Gideros, there's this code: mesh:setVertex(index, x, y) However, I would also like to use the z coordinate. I've…
Jillinger
  • 172
  • 2
  • 11
1
vote
1 answer

Gideros: Custom event not reaching event listener

In Gideros, I have am making use of a custom event to update the score. I have the following code for the receiver of the event (some lines left out for brevity): GameInfoPanel = Core.class(Sprite) function GameInfoPanel:init() …
mydoghasworms
  • 18,233
  • 11
  • 61
  • 95
1
vote
1 answer

Lua Box2d Gideros: Hide bodies

In Gideros studio box2d, bodies(which are basicly the physical object, not the picture that goes with it) always show up as a translucent shape. In my game, i don't want players to be able to see these bodies. I've seen that you can do this in…
Henry V
  • 195
  • 1
  • 7
1
vote
1 answer

using getPosition() and setPosition() in Lua with Gideros

I am using SceneManager.: Now, the problem is I have many objects on this level, but I want only one of them to move up and down on touch, the object is taken from texture pack and is basically an animation: If i do self:getPosition and…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
1
vote
2 answers

String compatibility error, attempt to index a nil value

I am using Gideros and getting this error: main.lua:47: attempt to index a nil value stack traceback: main.lua:47: in function 'func' [string "compatibility.lua"]:36: in function <[string "compatibility.lua"]:35> I have this piece of…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
1
vote
1 answer

box 2d concepts :Gideros (LUA)

In below mentioned code, what exactly is the difference between sprite, body and ground? Why are there no parameters passes to createBody while declaring ground? what is difference between edgeshape.new() and polygonshape.new()? require…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
1
vote
1 answer

attempt to perform arithmetic on a table value: Lua error message

stage:addEventListener(Event.ENTER_FRAME, function() Graphic:setRotation(Graphic:getRotation()+ (Timer.delayedCall(math.random(4, 8) , function () speed = math.random(1, 30) return speed end) )) end) Basicallu, what I am trying to do is, change…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
1
2 3