Search found 3 matches

by Glampkoo
Tue Feb 11, 2014 7:45 am
Forum: Support and Development
Topic: Help with love.mousepressed function and while do loop
Replies: 5
Views: 3137

Re: Help with love.mousepressed function and while do loop

Azhukar wrote:
Glampkoo wrote:Ok thanks for the updated .love file!

It gives this error. 'end' expected (to close 'if' at line 37) near '<eof>'
You must write "elseif" not "else if", write it without space.
Ok it works now.
by Glampkoo
Mon Feb 10, 2014 11:11 pm
Forum: Support and Development
Topic: Help with love.mousepressed function and while do loop
Replies: 5
Views: 3137

Re: Help with love.mousepressed function and while do loop

Ok thanks for the updated .love file!

It gives this error. 'end' expected (to close 'if' at line 37) near '<eof>'

Updated function:

Code: Select all

function love.draw()

...
if posVar == 1 then
	love.graphics.draw(mark, MouseX, MouseY)
	posVar = 0
end
...
by Glampkoo
Mon Feb 10, 2014 9:43 pm
Forum: Support and Development
Topic: Help with love.mousepressed function and while do loop
Replies: 5
Views: 3137

Help with love.mousepressed function and while do loop

I have a little problem with the love.mousepressed function and while do loop. (it has an error too) I'm not very experienced with Lua but I did learn some programming languages earlier so I understand most of the things easily. First, the image doesn't appear when I click somewhere in the game. Sec...