Hi everyone, hope you are doing well today.
I'm currently working on my mobile video game on C3. It's a top down game where you need to dash to move and attack ennemies.
Dashing is made by pressing the screen, dragging and releasing. The more you drag, the more power you put in your dash.
I decided to code it from scratch rather than use a C3 behavior.
But when I've tested my game on a mobile phone, I discovered that my dash movement wasn't consistent (with the same power, I ran more distance on mobile than I do on PC).
I made some research and found out about delta time to control my movement independently from FPS.
But I have a really hard time understand how I should transpose the delta time workflow with my actual code.
That's why I need your help here.
I've recorded the gameplay so you can better see how it works.
Here's also a screenshot of the code of my actual movement.
youtube.com/shorts/NVLijoig0C8