hi,
i don’t know how to do this :
how to program the first scene that explains the premise of the game and afterwards you can not see anymore at launch
thanks for your help
hi,
i don’t know how to do this :
how to program the first scene that explains the premise of the game and afterwards you can not see anymore at launch
thanks for your help
Hi
Set a flag.
Create a simple text file with the number 1 in it and save it to the main folder with all your code in.
Call the text file new.txt
Read it in your main.lua
Local new = 0 local \_path = system.pathForFile( "new.txt", system.DocumentsDirectory ) local \_file = io.open( \_path, "r" ) for line in \_file:lines() do new = tonumber (line) end io.close( \_file ) \_file = nil \_path = nil line = nil
if new == 1 then display the help info
Then write over the new.txt with a zero
local new = 0 local \_path = system.pathForFile( "new.txt", system.DocumentsDirectory ) local \_file = io.open( \_path, "w" ) \_file:write( new ) io.close( \_file ) \_file = nil \_path = nil line = nil
Job done.
Hi, Thanks it’s solve my problem. Have a nice day.
Hi
Set a flag.
Create a simple text file with the number 1 in it and save it to the main folder with all your code in.
Call the text file new.txt
Read it in your main.lua
Local new = 0 local \_path = system.pathForFile( "new.txt", system.DocumentsDirectory ) local \_file = io.open( \_path, "r" ) for line in \_file:lines() do new = tonumber (line) end io.close( \_file ) \_file = nil \_path = nil line = nil
if new == 1 then display the help info
Then write over the new.txt with a zero
local new = 0 local \_path = system.pathForFile( "new.txt", system.DocumentsDirectory ) local \_file = io.open( \_path, "w" ) \_file:write( new ) io.close( \_file ) \_file = nil \_path = nil line = nil
Job done.
Hi, Thanks it’s solve my problem. Have a nice day.