How to make a very specific punch

I made a new enemy called the Nightmare Beef Monster. I’ve got everything done for it except the attack. I want to make it so that when the player is in a certain proximity, there will be a 50% chance that the monster will punch the player and restart the level. How could I do this?
Game link.
You can add the monster into the dojo level to test it.

1 Like

I’ll make an example real quick.

1 Like

thanks

1 Like
1 Like

this is the main part you should use, you can make the switch do anything you want:

also I’d use the timer to make it so that it shoots every x seconds or milliseconds. But it’s your choice, you can have anything going into the switch.

1 Like

Oh damn, sorry I forgot to add 50% change brb

EDIT: added–
Screen Shot 2021-08-03 at 1.26.57 PM

1 Like

Thank you, but that shoots a bullet. Could you tell me how to make it punch?

1 Like

just make a punch object and replace it with a bullet…

1 Like

like make a fist that shoots and comes back or something cool.

1 Like

ok, thank you again!

1 Like

this is so fun to play with lol, no objective but it’s so addicting to throw it:

Might make it into a fun game with highscores. I want to make it so that you have to see how long you can escape your own boomerang.

1 Like

that sounds interesting

1 Like