Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bindle

Pages: [1]
1
Lua / Re: Lua Q&A
« on: November 18, 2012, 09:59:08 am »
So where do I do that? Is this the way to call a function?

function SceneUpdate()
   if wormhp == 0 then run("level")
   end
end
   
function level()
   xp = xp + 1
   return
end

2
Lua / Re: Lua Q&A
« on: November 18, 2012, 09:50:44 am »
Hey guys, Im coding a game.

When I type xp = xp + 1 in the function SceneUpdate() my xp just turns away into a million xp points. I just want the increasment of one.

How do I do that?

Bindle

Pages: [1]