Collecting Task & Game Improvement

16/7/2020

I am mainly adding a new task according to our updated story this week. But there’s still some bug here waiting me to fix it later.

I improve the player perception to the game by adding some details:

  • Adding sound effect
  • Adding black-in and black-out to transit the scene
  • Adding HP to the slime inside the shooting task
  • Adding shaking effect to slime when the slime is dead

Bug Fixing of Shooting Task

16/6/2020

I add the HP function to check if player is dead under slime attack or not.

But the HP bar reduction effect was not worked as expected. It keeps reducing HP after receiving any hurts, and it will fill the HP value when player receive next damages.

The problem is probably caused by the script is receiving the wrong HP value. Because the HP bar need a floating value to set the HP deduction effect, the dividing result of two integer value always return a 0 value to it. So I correct the commands as following.

before
after

And it works fine now, even there are more than one slime that is attacking the player.

Convert Throwing into Shooting

21/5/2020

I make some changes on the throwing function, so that it likes shooting instead of throwing. When apply into our shooting task, the bullet was not going to explode when it collides with the object.

To fix this problem, I add the collusion detection of the bullet. When the bullet collide with object, it will disappear.

And I add the explosion effect when the bullet is collide with other objects.