How can I make my menu pop up when my 2D character falls through a hole?

I’m glad I could help. Good luck with your project.

Hello there!

So I’m making a 2D side scroller game for my final project in school and everything is going well since I went through alot of tutorials, forums and answerhubs within Unreal. Right now everything that I needed to make a 2D Game is set but I’am having a slight problem.

I have holes through out the entire map, like in Mario, and what happens is, whenever my character falls through one, she dies and black screen shows up, basically showing that the character doesn’t respawn. I want the menu that I have scripted to whenever she dies from falling of the world to pop us so the user can play or simply quit the game.

Thing is, this menu only pops up when she dies against an enemy and not when she dies by the world. Can someone help me figure this out?

Thank you!

Could you try adding one huge trigger Box at the bottom of the holes so that when the character overlaps the trigger Box, you can call your “game over” widget.

You would do this by going into the level blueprint then:

Get a reference of your trigger Box by having it selected in your viewport then go into your level blueprint and right click and get the reference of actor.

Drag out the pin of the reference you got and search for actor begin overlap and select it.

Drag out the execution pin of the begin overlap node and search for create widget.

Drag the execution pin of the create widget node and search for add to viewport and don’t forget the connect the result pin of the create widget node to the result pin of the add viewport node.

Thank you very much, it worked a 100 percent. You saved me haha!