Well you could have made that clearZitat:
Zitat von HaxxBlaster
Printable View
Well you could have made that clearZitat:
Zitat von HaxxBlaster
I pretty much did, because there is no other way to do the "skipp" stuff that i want.
Dosen't any one know how the "return" commands works?
I got this "Loop In Gettable" problem as well, and i can't find anything thats wrong with the script.
I have tryed "Do wile true" and it dosen't work.
I also hav etryed to take away parts to see if it work, but nothing fhcking work!
Code:---- FILETYPE CHOOSER
FTime:start()
if pad:l() and filetype == ".png" and FTime:timer() >= 400 then
FTime:reset()
filetype = ".jpg"
screen.waitVblankStart(ControlWait)
end
if pad:l() and filetype == ".jpg" and FTime:timer() >= 400 then
FTime:reset()
filetype = ".png"
screen.waitVblankStart(ControlWait)
end
---- PAD:R() SHOW LAST SAVE
if pad:r() and ShowLastSave == false and FTime:timer() >= 500 then
while true do
ShowLastSave = true
FTime:reset()
end
end
if pad:r() and ShowLastSave == true and FTime:timer() >= 500 then
ShowLastSave = false
FTime:reset()
end
Yes, same error with both button hits.
here is the code thats make 2 buttons to one fuction
if pad:cross() and
square() then
break
end
[I]end[I/]
Hehe, yes i know. But read my code before posting.
not really a lua question.. but how do you make an image transparent.. and can you do it in MS paint?
Hey TO, search in google for "Lumo PSP" i think he has a sidescrolling example code.
No, use something like Photoshop, or the Gimp.Zitat:
Zitat von montrob
When u rub something out in these programs the BG shows(grey and white squares), that shows that it is transparent.
Alright thanks a lotZitat:
Zitat von Vaza
TO, you can also use the "music" example in the "Applications" folder in LUA-player itself. It has a scrolling background. Also I use a very simple way of scrolling, well i think so anyway, but im not sure if thats the same. It'll probably come down to the same.
I have a little Problem:
Money = 300
Bet = 0
Code:if pad:right() and oldpad:right() ~= pad:right() then
Bet = Bet + 10
end
if pad:left() and oldpad:left() ~= pad:left() then
Bet = Bet - 10
end
if Bet < 0 then
Bet = 0
end
if Bet > Money then
Bet = Money
end
when i lose the money cause down up to zero how can i do so that it goes down only onece.Same thing when i win but it goes up.Code:function pointsCalculate()
if Points == Dealerpoints then
screen:blit(0,0,lose) Money =- Bet
elseif Points > Dealerpoints then
screen:blit(0,0,win) Money =+ Bet
elseif Points == 11 and Dealerpoints < Loser then
screen:blit(0,0,win) Money =+ Bet
elseif Points == Winner and Dealerpoints < Winner then
screen:blit(0,0,win) Money =+ Bet
elseif Dealerpoints == 11 then
screen:blit(0,0,lose) Money =- Bet
elseif Dealerpoints == Winner and Points < Winner then
screen:blit(0,0,lose) Money =- Bet
elseif Dealerpoints > Points then
screen:blit(0,0,lose) Money =- Bet
end
end