Search found 5 matches

by Pin222
Tue Nov 26, 2013 5:44 pm
Forum: Support and Development
Topic: Help with integers (SOLVED)
Replies: 5
Views: 4301

Re: Help with integers

water = {} function water.load() waterGFX = { love.graphics.newImage("waterbackground1.png"), love.graphics.newImage("waterbackground2.png"), } waterFRAME = 0 end function water.update(dt) waterFRAME = waterFRAME + 10 * dt if waterFRAME > #waterFRAME then waterFRAME = 0 end end ...
by Pin222
Tue Nov 26, 2013 12:53 am
Forum: Support and Development
Topic: Help with integers (SOLVED)
Replies: 5
Views: 4301

Re: Help with integers

http://www.lua.org/manual/5.1/manual.html#pdf-tostring thank you for the quick response, I have tried to implement this, here is my code: water = {} function water.load() waterGFX = { love.graphics.newImage("waterbackground1.png"), love.graphics.newImage("waterbackground2.png"),...
by Pin222
Tue Nov 26, 2013 12:23 am
Forum: Support and Development
Topic: Help with integers (SOLVED)
Replies: 5
Views: 4301

Help with integers (SOLVED)

Hi, my question is; how do I display an integer? my code is this: water = {} function water.load() waterGFX = { love.graphics.newImage("waterbackground1.png"), love.graphics.newImage("waterbackground2.png"), } waterFRAME = 1 end function water.update(dt) waterFRAME = waterFRAME +...
by Pin222
Thu Nov 21, 2013 9:51 pm
Forum: Games and Creations
Topic: Need help with new game
Replies: 7
Views: 4528

Re: Need help with new game

thanks davisdude and robin for the quick response I removed the code that was causing the error and re-uploaded it as a .love for you guys. I was planning to use the AnAl library so all my animation frames are on a sprite sheet and not single files. I haven't got my head round the usage of the libra...
by Pin222
Thu Nov 21, 2013 2:54 pm
Forum: Games and Creations
Topic: Need help with new game
Replies: 7
Views: 4528

Need help with new game

Hi, I'm new to the love community and hope you guys can help me out a bit. I am a coding beginner and keen to improve my coding skills I have made this game and need advice on how to improve the code and use of language in order to take it further. If anyone can give me any coding tips they will be ...