Monday, March 20, 2017

TOE week 29: Logical Gates.



I was once again late with my update but I had a busy weekend. However I did work on this giant project. Powers management.  Remember how I spent weeks working on creating various different powers like air dash and portal? Well last week I spend days figuring out how to turn them off. In my game loop it works something like this. Play level => Fight Boss => Get new Power. However powers are equipable. So I needed two bools for each power. IsEquiped and isUnlocked. If both are true then you can air dash.  There is also a health effect when I power is equipped and I had to put in the math for that. This week was like creating an electrical switch. 

I ran into a problem. I put the power manager script onto the player and I understand how to get two different scripts to talk to each other but I didn’t know how to get two scripts on the same object to talk to each other. Seemed pretty basic actually. Usually this would be something that would hang me up for a little while but knowing what I now know I solved it in about ten minutes. The cool thing about this week has been that all of the problems I seemed to encounter I seemed to be able to solve with knowledge I already had. And that is a great feeling. It is like I’m actually good at this now or something! Don’t worry I also know I shouldn’t let it go to my head. I mean there is so much more to know about C# and Unity. 

I guess the down side is that I really don’t have anything to show off this week because it was all in code really. This week I need to start making more artwork and I think I’m going to start making my vertical slice level. I should probably make a list of all of the things that needs.

No comments:

Post a Comment