SGD300-Attacking and Floating Message
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
Get SGD300-Dungeon Siege Semester long Project / Task3
SGD300-Dungeon Siege Semester long Project / Task3
More posts
- Task3_Score UI and systemOct 27, 2019
- Task3_Map Asset ImportOct 27, 2019
- Task3_TimeWatch for game conditionOct 27, 2019
- Task3_Enemy_Movement_AIOct 27, 2019
- Task3_MainMenu and Player InputOct 23, 2019
- Task3_Porfolio_Game_DesignOct 10, 2019
- SGD300-Move to next level or sceneOct 04, 2019
- SGD300-In Game Object SpawnerOct 04, 2019
- SGD300-Hearstone Item or FunctionOct 04, 2019
Leave a comment
Log in with itch.io to leave a comment.