A downloadable plugin

Download NowName your own price

A plugin that activates a switch/self-switch when an event is close to the player. The user can designate line of sight obstacles with region IDs and/or terrain tags.

Who is this for?

Games with real-time enemies (like horror games), stealth sequences, or puzzles. Also useful for hit detection and triggering events from afar.

Made for RPG Maker MZ.

Updates

v1.1 - Added "Facing in a Line"

v1.2 - Switches now toggle; improved compatibility

v1.3 - Fixed crashing when used with certain pixel movement scripts

v1.4 - Added "Enable Stealth Kill" plugin command 

Terms of Use

Free for commercial and non-commercial use. Please credit me if you found it helpful.

Updated 18 days ago
StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(7 total ratings)
Authorreflector88
Tagsline-of-sight, RPG Maker MZ, script

Download

Download NowName your own price

Click download now to get access to the following files:

r88_ProximitySensor.js 11 kB

Development log

Comments

Log in with itch.io to leave a comment.

My only issue with this is there's no stealth kill functionality because you have to put it in a parallel event to make it check

(like theres no player touch trigger i can use to get them before they see me)

is there any way to have it so the plugin command works even if its not parallel?
ive seen older ones that used comments to flag the event as something looking

I just updated the plugin to add an "Enable Stealth Kill" plugin command. This lets you use the action button to interact with the event.

Nice

I wonder if theres a way to have it show the vision.

I see a lot of japanese devs where it shows as light squares but cant find their plugin source

Hey there, I’ve been looking for something like this for a while! I’m currently developing an action battle system template/plugin that integrates some community plugins. Would it be possible for me to use this plugin in the template temporarily, just until I finish my own version? If required, I’m happy to give credit while it’s included.

If you're not using it in a release version of your plugin, you're welcome to use my code as a placeholder.

If you're releasing your plugin, I would rather you not copy the code directly, especially if you're selling it for money. You're still welcome to read my code to learn how to implement it yourself, however.

Yes, it is for a placeholder. Thank you very much, I have something similar to this and just wanted to experiment with it.

P.S. This plugin is really well-built. Good job.

This Plugin works great, but when I use it with Rosedales Collision Altering plugin it freezes my game entirely. Is there a way for them both to work together? 

Here's the plugin that I'm having trouble with https://chaucer.itch.io/collsion-altering-plugin

(1 edit)

Having the same problem. Did you manage to solve it?

I actually fixed this issue in private messages with Qrim. Since this seems to be a more common issue than I thought, I'll release the changes as a public update.

(+1)

hey,. this has... fixed video games. thank you


(I was using a much more limited plugin designed for MV and encountering Issues. this is exactly what I was looking for, fixed the issue I was dealing with, and honestly caused me to neaten up my code a bit while reorganizing things to get it all working nicely. my eternal thanks to you and your work)

Just what I was looking for, thank you so much! Is it possible to make it activate when it's facing the player in a straight line? So a combination of Facing and Orthogonal. 

Roku, I've updated the plugin and added a "Facing in a Line" option.

(+1)

Oh man, can't believe you did it and so fast, thanks so much!

Very cool!

Does this work with NPCs that follow a set movement path or is it for stationary only?

Davey,

It works with moving things as well. Note that the sensor only checks once (you have to set the event as a parallel process if you want it to check continuously), so I recommend you put your custom route in the sidebar instead of using the "Set Movement Route" event command.