The Legend of the Red Weapons: Version 1.2


LOTRW Patch Notes 1.2 - 7/13/2020

 Day 

What’s New

  11        


12


  1. Uploaded version 1.1 to itch.io
  2. Created a flying enemy that will now move towards the player that shoots it while finding the quickest path.
  3. The flying enemy sprite will face the direction it is moving at all times now.
  4. Made a function that allows certain obstacles to spawn after the AI has detected where it can go. This way let's say I have certain obstacles on the obstacle layer. I can ignore them when the AI initially detects where it can go since these obstacles can change after start. 
    • In the future it would be best to have the AI update its movement grid, if we have move able obstacles or buildings like Fortnite in the future.

13


  1. Used A* path finding to create my own custom AI movement. 
    • Flying enemies now move in the smartest path and use velocity. While enemies on the ground move straight at the target using velocity.
  2. Had multiple scripts used for different enemies and now was able to incorporate that into one script.
  3. Instead of coding boundaries I just put two box colliders to hold the player in place.

14

  1. The game now will spawn 2 different types of enemies. The first enemy has a 75% chance of spawning and the second enemy has a 25% chance.
  2. Created a currency that can be picked up by the player when pressing z.
    • At first I had a glitch where it wouldn’t be picked up. I fixed this by turning the currency’s rigidbody’s sleep mode to never sleep and changing my pick up option from getKeyDown to getKey. I also changed from OnTriggerEnter2D to OnTriggerStay2D
  3. Currency will now have a drop rate to appear when an enemy is destroyed.
    • When it appears it is given a random value between 0 and the max money amount that the specific enemy has
    • The currency object will “Jump Up” when created.
  4. The player now has a totalMoney variable that will go up when he picks up money.

15

  1. The pop up motion that was created was moved inside fixedUpdate

16

  1. Enemies now have random movement before being attacked and will randomly jump as well.

17


  1. Player now has a working experience meter that will give him a level up when he reaches the required amount.
  2. Weapon script location has been changed from the anchor to the actual weapon itself.
  3. Player can now ADS, as of now it just changes the position of the weapon on the character.
  4. Weapons now have fire rates
  5. Weapons can now be automatic and non-automatic.
  6. There was a glitch where the invoke was not cancelling after the game object was disabled this was causing my enemies to jump constantly. Using cancelInvoke in OnDisable fixed that.

18

  1. Combined Weapon & WeaponEquipment Scripts into one singular weapon script.
  2. Created a cursor to use when searching through a menu.
  3. Changed my bloom to be equal to the distance between the actual cross-hair game objects that way the bloom value will increase as the game object does and will go down when the game object does etc.
  4. Created a very simple bloom function.

19


  1. Changed the cameras orthographic size to 10 because I felt the game was to zoomed in when it was at 5.
  2. Weapons now have a minimum bloom specific to each weapon.
  3. Made it so my equipWeapon() function will not destroy and equip a weapon if it is the same weapon. 
    • E.G.  If I have my shotgun equipped and I click the equip shotgun button it will not destroy my current shotgun and equip a new one.
  4. We now have an operational bloom that grows when shooting, and an ADS mechanic that minimizes bloom but also slow the player down. 
  5. If a player is hip firing while jumping they can no longer ads when they hit the ground by holding right click in the air. They need to take their finger off of the fire button before adsing.
  6. Bug happens where player takes damage twice. I fixed it by changing the order of the code that happens after my player collides with an enemy.

20

Files

Personal Project 1.2.zip Play in browser
Jul 13, 2020

Leave a comment

Log in with itch.io to leave a comment.