Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

This is a really great dialogue system! I've been searching so long for something like this!!

There is one thing that I'm trying to figure out. How do you change the detection radius so it can be a rectangle? I want to make it so the radius takes the collision mask, and can be extended from there.

In the game I'm making, I'm using the dialogue system to interact with objects as well. But for example, there is a long couch, and I want to make the detection radius so you can interact with it from all sides.

Thank you!

The detection_radius is actually already a rectangle (well, a square) - the "radius" is just half the width. This variable is found in the par_speaker variable. By default the speaker objects will inherit this value, but you can tweak it for individual objects. 

Since as you said you might want to make it a rectangle instead of a square, you might want to tweak the step event for some objects too. Instead of just adding the radius to all the rectangle variables, you could add half the collision box height, and half the width, for the x and y values of the rectangle.

I hope that makes sense - let me know if you have trouble!

Thanks for the reply! This helps a lot! 

Now what I want to try is to make the dialogue trigger on a collision event instead of entering the rectangle. I'm a beginner so I'll see if I can figure it out!