A downloadable game

1. Introduction

This week, I will be working on attacking and floating message for player

2. Main goals

- Enable attacking system

- Implement floating message based on the amount of damage dealt by player

3. Attacking system for player

First of all, I was searching about the basic concept of attacking system in Unity.

I came up with some ideas and the best one was using object collision. 

By using object collision I was able to attack (give damage) to the enemy with Health script. However, I have a problem with this solution. 

Since, I enabled player collision. It also moves my character. Which means player is affected whenever hitting enemy (Like loosing gravity).

I really cannot think of better solution. However, I am sure that I have to configure this problem with collision box; so I can affect the enemy.

4. Floating message

This one was really easy and light problem. Actually, on Unity forum I read many questions and answers from the forum and found out that I need to use text-mesh and put that one into the canvas. Lastly, I have coded it to spawn on top of the enemy.

In week6, I tried to implement this system and I failed. the reason for this is that I did not have damage and attacking script yet. So, I was failed to generate the floating message. 

5. Conclusion

Fortunately. I have finished floating message and loosing gravity problem with player character whenever attacking enemy

6. Lesson learned

- After I talked to Ban, I realized that there is other way to implement attacking system without using Collision

-I need to be careful when using collision trigger for player character

Leave a comment

Log in with itch.io to leave a comment.