- Home /
Falling faster and dealing damage to the enemies under you.
So i want to make my player fall faster when the down button is pressed, and when it collides with the ground it bascially "smashes" it, or something like that, so it gives damage to the enemies under him. Do you know any tutorials about this, or something?
Hi @$$anonymous$$Reverse -
You pretty much explained the logic yourself.
When falling down, if button pressed, make player fall faster. In addition to this, also store some state variable like smashing = true.
If player collides while smashing = true, add damage to enemy.
On collision enter with ground / platforms or whatever else, make smashing false.
Answer by tormentoarmagedoom · Aug 30, 2018 at 09:40 AM
Good day.
Tutorials about what ? smashing ground? key detection? phisics issues?
Abord the problem step by step... discover how make the player go faster, learn hot to create a collision, learn how to detect collision, What you ask is simple, so you will find the answer... before coming to ask for help ,try to abord the problem by yourself, try try try, read read read, and try try try again.
But we are not you magical code providers that solve all misteries for no money...
Your answer
Follow this Question
Related Questions
FallDamage being given continously instead of just once 1 Answer
Fall Damage Script Problem? 1 Answer
Punching - what would be the better way? (in javascript) 2 Answers
How to control damage output. 0 Answers
Melee Damage script by collision 2 Answers