top of page
Search
Rad Daddy

Fun with Coding and Dealing with Corpses.

Since combat has been completed, I have slowly started adding enemies to the game. With enemies added, you can now kill them. For the time being, and the foreseeable future, the plan is to have them fall to the ground and after a few moments, have them sink through it and disappear from the game. If you write code, then you know how simple this is:


  1. Remove colliders from model so it will pass through everything.

  2. If using physics, let gravity do the rest.

  3. If not using physics, decrement the model's y position over time.

  4. After so much time has passed, destroy the model.


This game doesn't really use physics, so I use the second method mentioned in Step 3. However, I accidentally incremented the y value instead of lessening it. The end result was probably the funniest programming "bug" I have seen in a while. Imagine getting attacked by Velociraptors. You unload a full magazine on one and it falls dead. Moments later you watch its lifeless body ascend to heaven... I have a bit of a notion of making that a game feature if not just a hidden one.

9 views0 comments

Recent Posts

See All

Writing Code versus Writing Blogs

Yeah, I'd rather write code. But every now and then, this blog needs some sort of update. Over the past three months, the following has...

Anno Domini 2020

So... It's been one hell of a ride through this year thus far and we have all been affected by it one way or another. I have been...

Tools of the Trade

As we have not found a 2d artist yet, we're learning to do the art ourselves with a distinct goal of not looking like "programmer art". ...

Comments


bottom of page