This is yet Another (but pretty short) question that I have. Basically I’m working on a pong game, and I have a collision variable that’s assigned to a move and collide function with velocity * delta in its parentheses, but It isn’t affected by my speed anymore, Is there anything I’m doing wrong?
var collision = move_and_collide(velocity * delta)
How are you manipulating the variable, right now the only equation I know affects your speed is velocity * delta I’m pretty sure delta is frame time so I need to know what velocity contains
The really important part is velocity, I tried to explain it here
How are you manipulating the variable, right now the only equation I know affects your speed is velocity * delta I’m pretty sure delta is frame time so I need to know what velocity contains
I cannot help solve x = velocity * delta if I do not know what velocity = ___
I WAS ABLE TO FIX IT, turns out I should have calculated the speed in a physics_process instead of a ready function (because the ready function only happens once while the physics_process constantly updates). Now I can calculate velocity * delta * speed without the game breaking (or in this case, the speed being multiplied and increased constantly with an already fixed speed).
This is the first time I realized my mistake on my own and I hope I can keep on doing this more often, but still thanks @gertkeno for actually making me look into that script a bit more, I highly appreciate it