alpha is a colour channel, we usually use red, green, blue and alpha colour channels, alpha is the transparency or see through part of an image, basically it is part of the image but you cant see it and it shows whatever is underneath - it is like a window we can see through it to the other side, that is the same sort of thing as alpha
EDIT:
we were talking about config files earlier here is a new code that i have tested and works fine - do files are good to use for config files but you have to code it correctly if you dont it "MAY" corrupt the file
here is the code i have now, it would be slightly different in your code because of obvious reasons but here it is
Code:
white = Color.new(255, 255, 255)
loaded = 0
oldpad = Controls.read()
while true do
pad = Controls.read()
screen:clear()
-- insert your main code here
if io.open("./config.cfg") == nil then
config_file = io.open("./config.cfg", "w")
config_file:write('data = "word"')
config_file:close()
loaded = 0
end
if loaded == 0 then
dofile("./config.cfg")
loaded = 1
end
if pad:cross() then -- you obviously wouldnt do it on a button press but its an example
config_file = io.open("./config.cfg", "w")
config_file:write('data = "data"')
config_file:close()
loaded = 0
end
if pad:circle() then -- you obviously wouldnt do it on a button press but its an example
config_file = io.open("./config.cfg", "w")
config_file:write('data = "other data"')
config_file:close()
loaded = 0
end
screen:print(10, 10, data, white)
-- insert your main code here
if Controls.read():start() then
break
end
oldpad = pad
screen.flip()
screen.waitVblankStart()
end