In my game i have 2 sprints “Run” which is normal then “Run2” which is super sprint
I want, “when r and lshift are released theres a cooldown before you can super sprint again”, tho I am struggling to think what code i need to put in
So you created issue that if i press shift + R for brief second
And release them i gonna be stuck with cooldown
On top of that I could just hold shift + R forever and always run as fast as possible
To me looks like you would benefit more from making something like stamina bar and use that to for Run2
OR make timer that when you press shift + R timer starts
But then how you gonna allow me to enable/disable it?
Like what you want to do is not a problem
Problem is how to implement it in a way that makes sense and don’t punish player
Which also will be influenced by what game you are making
Either way in my eyes stamina bar makes most sense
Which is drained only when you hold shift + R
And shift + R gives you speed boost only when stamina bar is not empty
And then after each use you can run timer
To delay when bar will start to refill
So i for example have 100% of bar i press shift + R but i immediately release them and now my bar is at 98% but its not automatically refilling
I can still activate speed boost but also its not instantly recovering used up stamina
Think about what makes most sense for your game
Logic itself will not be even complicated to make
Thank you for the feedback
I really appreciate it, and i do like the stamina bar concept alot more.
If you don’t mind could you provide some help with making it
I’m still new-ish to gdevelop
Thank you so much,
This is genuinely amazing amd impressive
Again thank you
I seen notification about your question then i seen you edited message
IDK if you realized what you see here or was it become obvious
But for any one that did not
Then all logic is in the screenshot including stamina bar
I just used tiled sprite and placed it on my scene
yes i did realize, but i do appretate you still taking time to respond

