#13 | 2022-07-11 | Creating Conveyor Belt


Hello!

Now that I have the major bugs finished, it's time to make some more traps!


I'll start with a conveyor belt and that'll be the focus of this DevBlog. By the way, you can enlarge the pictures by opening them in a new tab and zooming in.

 After much work, I was able to write a script entirely from scratch! I'm very proud of this.


I'm in the habit of leaving comments on every important line of code, that way I never forget what something does. It's also good if I want to show somebody my code who isn't too familiar with C#.

I had encountered a couple issues, all of which my fault. Initially, I forgot to put the conveyor script on the conveyor prefab. Then I spent quite awhile scratching my head wondering why my player wasn't detecting collision. As it turns out, the player, ground and conveyor belt were on separate layers. I was able to get a good laugh out of these mishaps.

Making this "trap" was quite fun. I'll have to design some graphics for it and possibly learn animation. Another thing I will do is create a death effect where the player explodes in (pixelated) blood when they die. I did that for Generic Dash Game and thought it looked awesome.

The next trap I will make will be the acid barrel. I'll have to learn how to simulate a liquid in 2D, that will be a fun challenge.

Once all the traps are finished then I can start creating levels that more fit the theme of a death factory.

Thanks for reading and stay tuned for the next log!

Get Factory of the Damned

Leave a comment

Log in with itch.io to leave a comment.