Flappy Pig – New Coin Script
Day 083 #100DaysOfCode
Day 047 #100DaysOfGameDev
I started work on a new coin script that would spawn bonus coins into the game world and allow them to be picked up. Initially, I struggled with this and couldn’t get them to spawn properly, but then finally succeeded after much trial-and-error.
I only had them spawning in a straight line at regular intervals as a way to test it first. This was fine, only I couldn’t pick them up and Flappy Pig would just pass through them. I finally figured out where I needed to assign Rigidbody and Collision and things were looking up.
Then I started tweaking the code some more and ended up breaking the whole system. My mind is fried from all the work I am doing for my day job this week, so complex thought is not my friend right now. I decided to shelf it for the night and hopefully hit it with fresher eyes tomorrow. At least I know I have the concept set up, I just need to get it implemented properly.