This site requires JavaScript, please enable it in your browser!
Greenfoot back
MrSkyPanda
MrSkyPanda wrote ...

2020/10/26

does anyone know how to make a hitbox?

MrSkyPanda MrSkyPanda

2020/10/26

#
I was hoping someone would know how to make hitboxes. I am making my own version of Mario Bros and i need the goombas to die when they are hit on the head but i want the player to die if they hit the goomba anywhere other than the head
danpost danpost

2020/10/26

#
MrSkyPanda wrote...
I was hoping someone would know how to make hitboxes. I am making my own version of Mario Bros and i need the goombas to die when they are hit on the head but i want the player to die if they hit the goomba anywhere other than the head
You will need to get your movement codes in order first.
danpost danpost

2020/10/26

#
MrSkyPanda wrote...
I was hoping someone would know how to make hitboxes.
You would not need a separate hit box to accomplish what you want here. Just knowing that the collision with the goomba was caused by a vertical downward motion by the actor is enough.
MrSkyPanda MrSkyPanda

2020/10/26

#
oh! that could work. I will see if i can figure out how to code that.
You need to login to post a reply.