Wednesday, May 10, 2017

Day 43: Audio-only Game: Day 18

I made the integer variable that would define the delay between dealing damage.


Then, in the weapon-switching script, I added lines to change the StrikeDelayInt variable when "1" or "2" is pressed, changing the delay according to the weapon being used.


It wasn't working properly, so I went through the script, and found that two lines were in the wrong order. I fixed it.


Then, to the weapon switching script, I added a condition that CanAttack must be true. That way, the player can't switch back and forth between weapons until the first one is completely usable.


Next class I will try to learn how to add sound effects.

No comments:

Post a Comment