Search found 4 matches
- Mon Jan 29, 2018 3:55 pm
- Forum: Support and Development
- Topic: main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value)
- Replies: 2
- Views: 2964
Re: main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value)
So, when i was making a game (well, a program anyway), this lovely message popped up: main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value) This, is the line in question: scale = love.graphics.getWidth / 320 I don't know, am I dumb or what, but I couldn't find more about ...
- Mon Jan 29, 2018 3:47 pm
- Forum: Support and Development
- Topic: main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value)
- Replies: 2
- Views: 2964
main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value)
So, when i was making a game (well, a program anyway), this lovely message popped up: main.lua:7: attempt to perform arithmetic on field 'getWidth' (a function value) This, is the line in question: scale = love.graphics.getWidth / 320 I don't know, am I dumb or what, but I couldn't find more about t...
- Sun Nov 05, 2017 6:49 am
- Forum: Support and Development
- Topic: love.exe hungs up for some reason
- Replies: 2
- Views: 2209
Re: love.exe hungs up for some reason
Thank you, it works fine, I'm still learning so I didn't know. ;-)
- Sat Nov 04, 2017 9:47 pm
- Forum: Support and Development
- Topic: love.exe hungs up for some reason
- Replies: 2
- Views: 2209
love.exe hungs up for some reason
I was just scripting a car that was meant to rotate left when left key is pressed, but for some reason, when I'm trying to execute it, it hang up on me and stops responding! Source code: player={x=100,y=100,speed=150,img=nil,orientation=0,size=0.5,tlitvalue=(math.pi*2)/256,offsetx,offsety} function ...