Do you really mean player.width?Zitat:
player:width
That for b loop is kind of useless.
You're blitting the screen and then clearing it. You're essentially doing nothing to the screen. ???
Printable View
Do you really mean player.width?Zitat:
player:width
That for b loop is kind of useless.
You're blitting the screen and then clearing it. You're essentially doing nothing to the screen. ???
Im not sure. I based that part off of PSPMillionaire's tutorials. I'll try it later though. (Doing homework right now, or at least im supposed to ;) )
Altair, i get the error on line 314 whidch is thise line
also I'm pretty sure the error is only in the loadhighscore function because earlier I had called the function at the start and then had it print the highscore(so you knew what u had to beat) and it gave me the error that it cant display nil.Code:if write==1 then
loadHighscore()
if high<score then
high=score
saveHighscore()
write=2
end
end
Code:if write==1 then
loadHighscore()
if high<score then
high == score
saveHighscore()
write=2
end
end
Can anyone recommend (and link if possible) a good text editor?
that wotn work because im not comparing the high variable and score variable right there. im assigning the high variable the value of the score variable because the save function saves the high variablesZitat:
Zitat von Jeremy1026
Yeah, but with that. You are reassigning the high variable. Even though thats not how you would do it normally, I would give it a try
Zitat:
Zitat von MaSt3r_ShAk3
will get the width of the image "player"Code:player:width()
of course normally i would do something like
Code:player.width = player:width()
Hmm... But can anyone help me out with that error? My code is on the page before this. (And the reason that segment of code is there is to prevent the character from going offscreen when I move him)
Check the first PSPMillionaire tutorial. It has a great highlighter for Context programmer's editor. I love it.Zitat:
Zitat von MaSt3r_ShAk3