#๐Ÿ”’ adding overlay and keystrokes

17 messages ยท Page 1 of 1 (latest)

stuck river
#

so basically i play this game and it has some preety decent controls

so
w,a new,s,d (basic movement)
'w' for moving forward
's' for moving backward
'a' for moving left
'd' for moving right

so if u have some game knowledge you can really help me with this code

so when we press "w" and "q" we are supposed to dash forward

"s" and "q' is for back dash

"a" or "d" and "q" is for side dashed

side dashes, front and back dash have cooldowns.

side dash has 3 seconds cooldown
while
front and back dash has 5 secod cooldown

now that all the important stuff are out of the way, we will get into the main stuff.

this code is mainly for what keys i press and after the certain cool down i mentioned earlier

now i basically want 2 overlays
one is for side dash cooldown and
other is for front and back dash cool down

when i do a side dash the 3 second timer should begin and then end thats it.
same with the front and back dash
which is 5 seconds as mentioned earlier

now obviously u cant continuesly dash to the side or front. so the timer should be set in a way that it does not reset unless the cooldown is up and start again when i do the side, front or back dash.

...........................................................................

it would be great if someone explained me the code aswell, cause i also want to learn

snow irisBOT
#

@stuck river

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

pure carbon
#

you need to send your code for someone to analyse it and help

stuck river
#

oh okayy

pure carbon
stuck river
#

but idk how to code, so do i post the one generated with a.i?

pure carbon
#

if you havent done anything

#

then you need to learn

#

and start doing something yourself

#

or is this just a one time thing and you will never use python yourself

stuck river
#

i will prob use it a little bit in the future but not much

#

right now i do know a little bit of c programming since im learning that

#

but not much at the moment

#

and i do know how to use html and css fully

#

i jus learned it as it was easy

snow irisBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.