Made a Box tower minigame!
This Time, I decided to try something a little different and advanced, such as making a box tower with 2Dphysics challenging the player to make it as high as they can before it collapses. Also, the camera is attached to a collider that if spawned blocks miss the box tower or platform and land offscreen below: the game is over, however, whichever blocks have already first landed on the platform or another box stay unaffected by the collider.
WHAT I LEARNED:
• A bit more experience making instances from scripts within their functions, but I am still trying to wrap my head around script instances to understand them better and figure out their potential uses.
• Randomizing dropped boxes' gravity so one may fall faster or slower than the next one.
• Making the spawned box move back and forth without using an animator. Unlike what I did with Butch looking in one of the older games I made called “Nightmare of Bog Lane”.
• Get Game objects to ignore game objects at certain times with code.
• Get a camera to follow certain conditions.
• Assigning instances to game objects, again: still trying to wrap my head around it.
OVERALL:
• It was a great and a bit more complex exercise, I need to take more time to understand more about instances within the singletons. The game reminds me of a building block stacking game I used to play on the internet as a kid. I don’t remember its name though.
Comments