Search found 1 match

by Valcos
Sun Dec 07, 2014 11:15 am
Forum: Support and Development
Topic: '=' expected near 'player'
Replies: 4
Views: 3183

'=' expected near 'player'

I'm pretty new to Love2d and have done a lot of guessing, but can somebody tell me what's wrong with this?

I'm getting the error: '=' expected near 'player'

From this code:
If player.x > 200 and
player.x < 1080 then
player.x = getMouse.x(dt)
end