Event happen only when player is close enough to it

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
157
Reaction score
18
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

One With The Particle
Veteran
Joined
Jun 22, 2019
Messages
787
Reaction score
4,414
First Language
Absurdism
Primarily Uses
RMMV

PKirkby

Veteran
Veteran
Joined
Oct 26, 2019
Messages
157
Reaction score
18
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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top