How do I crash the games I make when I want

HI there long story short I’m trying to encourage my players to not do something. quit game will not work in this case I need my players to think the the game fully crashed thus meaning they would press that button again

Show them this scary thing as a widget?

4c10ecfd-3008-4b00-9f98-d41b6f899c2d

a.k.a. how to make real horror games in one easy step…

7 Likes

You could create an infinite loop so the game doesn’t respond anymore

2 Likes

Everynone

TollerTinsa

geniuses …

How would I go about turning of the loop detections?

I don’t know, didn’t even know that loop detection was a thing lol. Maybe you can get around loop detection by using c++?

See Maximum Loop Iteration Count setting
@MoaGameStudios

1 Like

Throw exception, divide by 0, dereference null pointer.

I like the Bluescreen widget if it’s an ingame joke.

quit game will not work in this case I need my players to think the the game fully crashed thus meaning they would press that button again

If you would actually crash it, you should be using an assert to do it properly.

@Shmoopy1701 @DraixPrime @TollerTinsa
But you don’t actually want to crash it, so some of the advices here other than showing a fake widget of “you crashed” would be terrible advice. Infinite loops hang a process or device entirely, things like zero divisions, dereferencing etc will literally crash or worse.

Man I played a certain horror game (no spoilers) that had me pick up a dead body as if it was an item. as a game dev I thought wow this is a bloody weird bug. Opening the inventory, of course it shows the body as an item, error descriptor :D. All planned from the start, not a bug. That stuff is just too good.

that 4th wall breaking right. I’ve always found my sound devices going from playing 24/7 music to that weird creepy stutter / hang on a crash so unsettling. Would totally do that in game. Some games like Undertale and Hacknet also did it right on the UI part.

I was responding to the question in post 5 of how to turn off loop detection, not how to simulate a crash.