gunntims0103
December 17th, 2006, 04:10
i was just wondering if it is possible in LUA to state a code as a variable then using the variable in a function for example
Background = Image.load("image/screen")
3d = screen:blit
3donscreen = screen:flip
3dloop = screen.waitVblankStart()
3d(0, 0, Background)
3donscreen
3dloop
end
is this code valid and can this be done. I tried this when i was implamenting a map for splonger15 in psp turismo and i just wanted to find out if i could state code as a variable. I tried it but i got errors.
Background = Image.load("image/screen")
3d = screen:blit
3donscreen = screen:flip
3dloop = screen.waitVblankStart()
3d(0, 0, Background)
3donscreen
3dloop
end
is this code valid and can this be done. I tried this when i was implamenting a map for splonger15 in psp turismo and i just wanted to find out if i could state code as a variable. I tried it but i got errors.