Project CATFOOD. Day 8. Unity makes me flip out.


Today Unity (and my ignorance on it) made me flip out like no other day before.

Lights, Camera...Error!

So I was following this cool tutorial on Cinemachine for 2D made by Unity, happy because I found a way to restrict the movement of the camera, but by the time I finished the tutorial and hit play ... the main character went flying out of the center of the screen all the way up and stood on top of the collider I set up as a constraint for the camera.

It results I needed to check the isTrigger property of the new collider; the character's collider was being pushed. But no indication for that was given in the tutorial.

But that's not all

The other rookie mistake that made me pull my hair was using void onTriggerEnter(Collider) to detect if the player was taking an item... needless to say I had to use onTriggerEnter2D(Collider2D), because it is a 2D game...


Good news

Unity made available, for free, the Dark Theme for all its users;  https://unity3d.com/es/unity/whats-new/2019.4.8

Until next time!

Leave a comment

Log in with itch.io to leave a comment.