Event happen only when player is close enough to it

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
157
Reaction score
19
First Language
english
Primarily Uses
RMMV
Hi everyone, I have an enemy that shoots projectiles with GalvsMapProjectiles, Right now he fires from anywhere on the map, I'm trying to make it so he only starts shooting when he's on screen, or better yet, when he's a certain distance away. Any things I may be missing? Or is there any code that does this? Thanks.
 

ImaginaryVillain

High Cultist of the Sporkle
Veteran
Joined
Jun 22, 2019
Messages
913
Reaction score
5,568
First Language
Absurdism
Primarily Uses
RMMZ

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
157
Reaction score
19
First Language
english
Primarily Uses
RMMV
Funnily enough I was actually building my own Common Event for that purpose (also because I want greater control than the plugins allow). However if you'd prefer not to do that, http://www.yanfly.moe/wiki/Event_Proximity_Activate_(YEP) will do it, though he charges $1 for it now (to be fair the whole collection is pretty worth it). Or there's a non-maker specific tutorial https://forums.rpgmakerweb.com/index.php?threads/proximity-distance-check.79791/
Perfect, I'll check it out. Thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

Took a small break by playing VR. Latest update of these glasses unfortunately caused a little of trouble but it can be fixed with a manual operation.

Until You Fall is freaking awesome.
I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.
how it looks from the top
Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

Forum statistics

Threads
112,187
Messages
1,066,450
Members
145,786
Latest member
pswpsw
Top