..............
Printable View
..............
I am sorry to say that this one doent even display the text... i have noticed in whitehawks tutorial that he did it, so i am going to try and recreate that effect.
Sorry, I hadnt even tried what I told you to do. The above WILL work. I tested it :)Code:board = Image.load("boardnew.png")
screen:blit(0, 0, board, false)
black = Color.new(0, 0, 0)
screen:print(200, 130, "Board", black)
screen.flip()
while true do
screen.waitVblankStart()
end
My excuse is that I'm not well. And so thats why what I told you to do was wrong :D
Thanks! It works perfectly! :icon_smil
I've commeted your program to help you find out why it was doing what it was doing..
Zitat:
Zitat von cools
Thanks Jenay. Hopefully this will not happen again!
Zitat:
Zitat von cools
No problem :)
Wow that took me a while...Zitat:
Zitat von Dremth
Ok put keyboard.lua (rename it to that) in the same file as your main code.
Then put this in your main code:
When you want define a variable or print something you can define the variable or what it's printing as keyboard()Code:dofile("keyboard.lua")
This will allow you to input what it is going to register the value as.Code:-- Examples
print(keyboard())
thetext = keyboard()
=================
Start - Enter Value
D-pad - select key
R - Space
L - Delete
Select - Like holding down shift
Control pad - Press the button corresponding with the character on the selected key
================
I've tested it and it seems to work on luaplayer v9 but not v11
I'm having a bit of trouble with the Timer function.
Using this as code:
I get:Code:Timer = Timer.new(0)
Thanks in advance for any help.Code:error: DEFUSE.LUA:27: attempt to index global 'Timer' (a nil value)
Error: No script file found.
Press start to restart
It's Timer:new(0)Zitat:
Zitat von goldnetx
You have to use a colon.