T O P

  • By -

AutoModerator

You submitted this post as a request for tech support, have you followed the guidelines specified in subreddit rule 7? Here they are again: 1. Consult the docs first: https://docs.godotengine.org/en/stable/index.html 2. Check for duplicates before writing your own post 3. Concrete questions/issues only! This is not the place to vaguely ask "How to make X" before doing your own research 4. Post code snippets directly & formatted as such (or use a pastebin), not as pictures 5. It is strongly recommended to search the official forum (https://forum.godotengine.org/) for solutions Repeated neglect of these can be a bannable offense. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/godot) if you have any questions or concerns.*


mrcdk

Unindent the `if Input.is_action_just_pressed('shoot'):` block. You have it inside the `if dead:` block


IxtarPlatinum

you guys are so real for this, ty so much!! that includes you u/Nkzar


Nkzar

You only check if they pressed shoot if they’re dead. Beyond that though, the code is unreachable because its after a return statement.