Search found 267 matches
- Sun Dec 17, 2017 6:10 am
- Forum: Support and Development
- Topic: Muffled Audio?
- Replies: 2
- Views: 4507
Re: Muffled Audio?
I read Love's 0.11 changelog. The devs added some audio effects. The release is focused on audio for the most part. Unfortunately it isn't out yet. Maybe you can try experimenting with it since it should come out soon (especially if you're starting a new project) Changes from 0.10.2: Added low gain,...
- Sun Dec 17, 2017 5:49 am
- Forum: Support and Development
- Topic: rotation question
- Replies: 20
- Views: 12594
Re: rotation question
Maybe check in the update function the value of your rotation variable. If rotation < -3.1 then rotation = -3.1 The same when it's greater than 3.1 Then draw the sprite. love.graphics.draw(img, x, y, rotation, width, height, scalex, scaley) Maybe there are more proper ways but it should work
- Fri Dec 15, 2017 8:10 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
I can't. I'm posting from my phone. I'll answer tomorrow if no one else provides a fix in the meantime
- Fri Dec 15, 2017 7:56 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
Wrong file name mate. It's square not moving xD
Ok I'm bad, I'm sorry xD
- Fri Dec 15, 2017 7:03 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
It took me 7 months before I could manage to start making my own game from scratch. Still I have to ask for help sometimes cause of something which I don't know how it works. All that backed up by the fact that I work as web developer and I code almost everyday since I was 16. So no, you're not goin...
- Fri Dec 15, 2017 6:58 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
I'm sorry man, I don't really know how to help you.
Please consider following some tutorials.
Sheepolution has some good ones on his website, they helped me a little when I started around a year ago.
Please consider following some tutorials.
Sheepolution has some good ones on his website, they helped me a little when I started around a year ago.
- Fri Dec 15, 2017 6:54 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
... local square = {} speed = 40 function square.update( dt ) if love.keyboard.isDown("right") then square.x = square.x + speed * dt end if love.keyboard.isDown("left") then square.x = square.x - speed * dt end if love.keyboard.isDown("up") then square.y = square.y - s...
- Fri Dec 15, 2017 6:51 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
Now you're using the table again, so it's square.x in your draw callback etc Please consider following a tutorial about variables and tables I know about variables, but I'm doing this. local square function square.update( dt ) if love.keyboard.isDown("right") then square.x = 10 + 40 * dt ...
- Fri Dec 15, 2017 6:36 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
Now you're using the table again, so it's square.x in your draw callback etc
Please consider following a tutorial about variables and tables
Please consider following a tutorial about variables and tables
- Fri Dec 15, 2017 6:32 pm
- Forum: Support and Development
- Topic: Game with separate files tryout
- Replies: 32
- Views: 18175
Re: Game with separate files tryout
square.x = square.x + 40 * dt Step by step. Then you're gonna investigate why your code didn't work. It won't work anyway cause you're using an empty table now. square.x doesn't exist anymore. You needed it. If you don't wanna use a table you have at least to declare a variable called x and use that...