do you have the latest luaplayer? sure go ahead ill test it
Printable View
do you have the latest luaplayer? sure go ahead ill test it
Mako, a table/array in LUA starts at 1 not at 0, thats your prob i think, atleast its one of them :p
-- My First Lua Program
-- Author: Shadox75
-- Colours
blue = Color.new(0, 0, 255)
-- Other
while true do
screen:print(200, 130, "Firmware 3.00", blue)
screen.flip()
end
Thats it.
well i tried to make the array start at 1 and i get the same error
error: level1.lua:88: attempt to index global 'solidX' (a nil value) press start to restart
Have you got it to work?
shadox75 rapidshare wont let me download it but if you put it on a different hosting site ill have a look at it for you
Sure.
i'm currently writing my first (bar hello world) lua "game" (it's nothin much yet) but i have a problem. i have a credits.lua file, that obviously runs through the credits etc of my game, which runs perfectly on it's own. i also have the main script , script.lua, that starts off as an small animation and goes to the main menu(which is just a picture saying square: credits etc..) how do i get it to show the main menu image, check if user presses square (eg) and if the user does, then dofile credits.lua?? i've tried loads of times, and the usual result is the script just repeats the animation without checking for square. HELP PLEASE!! i hope to release it soon enough but at this rate i won't