Search found 3 matches

by pizzahut91
Sun Jul 31, 2016 7:37 pm
Forum: Support and Development
Topic: How to make an action dependent upon love.mouse.isDown
Replies: 6
Views: 3773

Re: How to make an action dependent upon love.mouse.isDown

First, welcome to the forum! You've got one main problem here. love.mousepressed is called only once, so it doesn't help to build a while/repeat construct there. Try to use love.update instead. Some more advices: #1: When using velocities in LÖVE, try to use dt to make sure your velocity isn't fram...
by pizzahut91
Sun Jul 31, 2016 12:21 pm
Forum: Support and Development
Topic: How to make an action dependent upon love.mouse.isDown
Replies: 6
Views: 3773

Re: How to make an action dependent upon love.mouse.isDown

Sorry about that - I had to remake the code because I was an idiot and started trailing off doing some other thing in the same file but I got everything back in order and this .love file should more or less be the same. Another worrying thing is that the program straight up stops responding when lef...
by pizzahut91
Sun Jul 31, 2016 7:18 am
Forum: Support and Development
Topic: How to make an action dependent upon love.mouse.isDown
Replies: 6
Views: 3773

How to make an action dependent upon love.mouse.isDown

I'm kind of a newbie, but right now I'm tinkering around and trying to get an image to move across the screen in a direction dependent on the side of the screen the user clicks on. So basically the image moves left or right when the left or right side of the screen is clicked, but only while the mou...