Tuesday, 7 November 2017

Unity 2D UFO Mods

1. Which step in the list above was the most challenging for you?

- The most challenging step for me was getting the player to collide with the new pickups and then making those disappear and then add score. At first they both had separate codes, so I had two lines for "void OnTriggerEnter2D(Collider2D other)", one for each pickup. I was able to fix this problem after a lot of trial and error by removing the second one and adding it to my first with an "else if" line of code to go after the "if" code. I learned that you don't always need to give something it's own set of code, and can use "else if" on similar things.

Unity Check-In

  • What stage you're at in your Unity adventure (which tutorial video are you on, or if you're on the second assignment, which step are you working on?).
- I've recently completed the second assignment.

  • What challenges have you encountered so far?
- I encountered an issue where I couldn't get the new pickups to disappear and the player would just move over them, I fixed it by replacing a separate piece of code with a "else if" line.

- I also had some difficulties setting up the pop-up for a tie, or making sure the game would only check the score after all pickups were collected.

  • What's the most interesting thing you've learned so far?
- I've learned that if there's a problem, with enough googling and trying things you can eventually fix it.

EDIT: I can't seem to make the text in this post any larger for some reason, sorry about that.