Thank you all so much for helping me, this has been really instructive, and i've made tons of progress and solved lots of problems in the last couple days
Note to self - stop banging your head against things, and ask for help
Search found 13 matches
- Wed Mar 17, 2021 4:38 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
- Tue Mar 16, 2021 9:25 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
You need to stop using push for that. what i think i should do, based on your suggestion, is run the game at a much higher resolution, and then draw everything scaled down to the window size. that's what i did in the code below, and it seems to solve the problem! but this seems to solve the problem...
- Tue Mar 16, 2021 7:50 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
yes, i am using that library. i have read that it is very commonly used, and i assumed that everyone here would have it already. i'm sorry for not posting in the correct format, but i am just learning. i don't know how to export a file yet. but the code is very short, and it takes only a second to ...
- Tue Mar 16, 2021 7:25 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
yes, i am using that library. i have read that it is very commonly used, and i assumed that everyone here would have it already. i'm sorry for not posting in the correct format, but i am just learning. i don't know how to export a file yet. but the code is very short, and it takes only a second to c...
- Tue Mar 16, 2021 4:59 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
rect.draw_y = math.floor(rect.y - 0.5) -- not sure, but you use negative y; Also please test the code with positive y, maybe your error is here. subtracting y makes the rectangle move upwards instead of downwards. changing this does not help, as you can see be running the code below, which contains...
- Tue Mar 16, 2021 3:52 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
I've updated this comment: https://love2d.org/forums/viewtopic.php?f=4&t=90455#p239262 I'm not sure what specific update you made to the comment, or what specifically you intended to clarify. It seems that your suggested solution is to run a conditional if statement on every frame for every mov...
- Tue Mar 16, 2021 3:39 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
I see the problem that you make x=x+dt*speed, but the minus by the y. Also speed_x can be not same as speed_y. y is minus so that the rectangle moves upwards instead of down. this is not a problem. speed_x and speed_y do not exist in the example so i'm not sure what you mean, and an object can cert...
- Tue Mar 16, 2021 3:30 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
- Tue Mar 16, 2021 3:14 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
You round it again rect.x = math.floor(rect.x + 0.5) rect.y = math.floor(rect.y + 0.5) I'm not sure i'm following - this is what i'm doing in example 1, but it breaks at low speed. Example 2 is the intended fix. The draw position is rounded instead of the actual position, but this causes choppy mov...
- Tue Mar 16, 2021 3:12 pm
- Forum: Support and Development
- Topic: Problems with slow movement speeds
- Replies: 24
- Views: 11625
Re: Problems with slow movement speeds
If you overwrite rect.x and rect.y the movement will be choppy and it won work when rect.speed*dt < 0.5 If you want to use rounding, then just do it when drawing: love.graphics.rectangle("fill", math.floor(rect.draw_x + 0.5), math.floor(rect.draw_y + 0.5), rect.width, rect.height) I'm not...