i think it should either beZitat:
Zitat von MaSt3r_ShAk3
orCode:if life == 0 then
Code:if life = 0 then
Printable View
i think it should either beZitat:
Zitat von MaSt3r_ShAk3
orCode:if life == 0 then
Code:if life = 0 then
put another = sign with the = so
if life==0 then
Yeah nvrmind i edited the post with my new error that is EVILLLL
Zitat:
Zitat von MaSt3r_ShAk3
try wit spacesCode:if stick.x > 480 then
No dice...
black = Color.new(0, 0, 0)
life = 1
coll = 0
stick = Image.load("stick.png")
spike = Image.load("spike.png")
background = Image.load("background.pn g")
death = Image.load("death.png")
player = {}
player[1] = { x=240, y=200, life=1, stick=player[1] }
Okay look at the bold parts. is this possible? this might be the cause of my problems
No that is not possible. You say that player[1].stick=player[1]. You cant assign something to itself.
Ok i understand, but again, what exactly is your problem? I just dont get your post where you state your problem. Because i think you left out a "t" after the "can", or am i wrong? Please say it again. (maybe im just being really stupid :o )Zitat:
Zitat von cools
Sorry, I forgot to mention it...
Well whenever i try to play that along the with the game, it only plays the music and doesnt let you play the game.
It will play along side game if i only tell it to playback one of the music files.
I was told to do this buit it says the waitVblank thibg is wrong. help pleaseCode:frame_1 = Image.load("frame_1.png")
frame_2 = Image.load("frame_2.png")
frame_3 = Image.load("frame_3.png")
screen:clear()
while (true) do
--Put image to memory and flip it to screen
screen:blit(0, 0, frame_1)
screen.flip()
--Keep frame showing for 8 milliseconds
screen.WaitVblankStart(8)
--Clear screen to start over
screen:clear()
screen:blit(0, 0, frame_2)
screen.flip()
screen.WaitVblankStart(8)
screen:clear()
screen:blit(0, 0, frame_3)
screen.flip()
screen.WaitVblankStart(8)
screen:clear()
end
can you have functions within functions?