Tuesday, 31 March 2015

31/3/15 - Whack-a-Mole no more!


I've likened my problems in Unity to Whack-a-Mole.
When one problem goes down, another pops up.



So here's what's happened so far:

***Problems working out how big the sprites are when imported into Unity***
Cheating with a sized box around each sprite won't work - it's a case of going into photoshop, cropping it down to the pixel, and dividing the dimensions by how many sprites are across/down


***Problems with sprites not lining up***
That's a case for pivots, and not sprite sizes, as I initially thought.


***Assorted coding issues***
For whatever reason, I missed whole lines of code. I don't know how. The secondary issues were missing curly brackets and capital letters where they were/weren't supposed to be


***Jumping***
Turns out, I had my gravity on waaaaaaaay too high. The next problem was getting the animation to play properly when she falls. That was just trial and error.



But guess what?
I've done it!... For now at least. 

video




I've got a minor issue going on with the camera tracking, but I'm pretty sure this is easily sorted out with a bit of code that keeps the Y axis fixed. I'm not a coder, so this'll take a bit of research, or some help with someone in the know.


video



Ahhh. The sense of accomplishment is overwhelming right now.