Py Log #13: Debug.DrawRay?

nubb
2 min readOct 12, 2023

--

Good afternoon Medium! Sorry for missing yesterday’s deadline for this week’s 2nd story, I’ve been getting swamped with school lately and it’s not doing me well. But that can wait, we gotta chat about what’s been up lately.

(i can’t find a smaller gif, so bear with these huge af ones…)

So What Have I Been Up To Lately?

Let’s get to it. Full sprint.

Firstly, I got through some more regex practice. My total verdict on regex is that, while they are very good at what they do, they’re cryptic as hell. I have absolute certainty that I will forget everything I’ve done with regex, due to the complexity of it. They’re very good for input validation and checking, if you need very specific conditions.

Moving on to Unity (this Py Log is going to be quite short…), I have got shooting working!! When I launched the game for the first time and tested it, I was very happy that it was working overall. However, there are two big things that are annoying as hell:

  1. Full Auto fire has been swapped to a keybind selector, that being B. However, Full Auto fire is irreversible, thereby meaning that It is literally impossible to stop firing or revert back to semi-auto. I believe this is due to the fact my script is relying off a click input, and not a hold and release, which isn’t being detected in this case.
  2. Bullets being cloned in the scene stay no matter what (there is no current means to delete a clone after some time), which could cause ridiculous performance issues with all the generating and assets on screen.

For both of the above issues, I plan to fix those today (Thursday), and if that doesn’t happen, the following Monday will be my next “deadline”. I will also try to get a clip of the shooting mechanic in action for Friday’s log!

Final Thoughts

This is another short log unfortunately. There really isn’t much else to elaborate or chat about. But before I go, huge thanks to Fabian and Alexandra Grosu for a total of 61 claps on the last Py Log!

And with that, I’ll be going for now! I’ll see you guys this Friday with our last story for the week!

(thanks for reading til the end!!)

--

--

nubb

Some guy programming and telling the world about it || Check out my projects here: https://github.com/nubbsterr