Discord
Login
Community
DARK THEME

How do I make my sword add a collision to make the enemies disappear?

I have had this for a while, And I need this for my tech fair project, I have done doing this, because I have been doing this for at least 3 weeks, can someone please help me. I really want this game to have it. Please 🥺

Here is the game: https://microstudio.io/i/Tiberius/hollow3/

Press space to use the sword.

There are two possible solutions:

  • Make the enemy tiles into entities (meaning that they are not part of the tilemap, also allowing them to move). Then, give the sword and enemies hitboxes and use AABB collision to check if an enemy has been killed.
  • Give the sword a hitbox and use tilemap-based collision to check if it's hitting an enemy.

Can you show me how to do The AABB collision?

have a link to a youtube video then show how to do both in the tutorial section

Really!? Thank you! :)

What is your name?

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community