KevinTheHunter

Villager
Member
Joined
Sep 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
I´m making a stealth game and I want the enemy to show a balloon icon, when the player is X steps close to the enemy, but also if the player is one step closer, then an animation would play and would put the player at the start of the level.
I tried EventChasePlayer plugin and a common event, but I can´t put the common event on a certain enemy/NPC. I´d have to make hundreds common events for every enemy on the map for it to work. And even then I´d need another common event for the transfer to the starting position, right?

Also, I´d like the enemies to have a flashlight and if the player approaches the light, the light would change color once(this would be at the same time, when the balloon icon appears) and once again if the player comes one step closer to the flashlight. The flashlight color should only change, when the player touches it.

There are a few questions in one. Anyone have any ideas?
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
415
Reaction score
1,269
First Language
English
Primarily Uses
RMMV
Not really a hundred common events just a looong parallel process that checks player X,Y vs event 1,2,3,4... X,Y and If the distance is X then apply the balloon/light changes you want.
 

KevinTheHunter

Villager
Member
Joined
Sep 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
Not really a hundred common events just a looong parallel process that checks player X,Y vs event 1,2,3,4... X,Y and If the distance is X then apply the balloon/light changes you want.
Can you give an example how to do that? I tried, but I´m kinda stuck. I went to do a common event, then in control variables selected the player and position X. After that I don´t know what.
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
415
Reaction score
1,269
First Language
English
Primarily Uses
RMMV
Id reccomend using a parallel process for the flashlight thing, and placing it on the map you need, you need player position x AND y saved as different variables, then event positions too as different variables and do a math of player x - event 1,2,3... x and player y - event 1,2,3... y if the result is 1 or whatever distance you want you apply the changes, for example if distance is 2 for flashlight you change the color.
I would make it so the chasing events are "player touch" type and transfer you to a given location, you can common event this if you want the flashlight thing is the only one that would need nested ifs on a parallel.

As a developer of a stealth game i reccomend you to never make maps too big and crowded, as the checks and pathfinding needed for stealth mechanics can bog things down, keep the maps medium sized and try to keep enemies on the 1-12 range.
 

KevinTheHunter

Villager
Member
Joined
Sep 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
Id reccomend using a parallel process for the flashlight thing, and placing it on the map you need, you need player position x AND y saved as different variables, then event positions too as different variables and do a math of player x - event 1,2,3... x and player y - event 1,2,3... y if the result is 1 or whatever distance you want you apply the changes, for example if distance is 2 for flashlight you change the color.
I would make it so the chasing events are "player touch" type and transfer you to a given location, you can common event this if you want the flashlight thing is the only one that would need nested ifs on a parallel.

As a developer of a stealth game i reccomend you to never make maps too big and crowded, as the checks and pathfinding needed for stealth mechanics can bog things down, keep the maps medium sized and try to keep enemies on the 1-12 range.
Awesome. thanks.
 

KevinTheHunter

Villager
Member
Joined
Sep 9, 2019
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
Id reccomend using a parallel process for the flashlight thing, and placing it on the map you need, you need player position x AND y saved as different variables, then event positions too as different variables and do a math of player x - event 1,2,3... x and player y - event 1,2,3... y if the result is 1 or whatever distance you want you apply the changes, for example if distance is 2 for flashlight you change the color.
I would make it so the chasing events are "player touch" type and transfer you to a given location, you can common event this if you want the flashlight thing is the only one that would need nested ifs on a parallel.

As a developer of a stealth game i reccomend you to never make maps too big and crowded, as the checks and pathfinding needed for stealth mechanics can bog things down, keep the maps medium sized and try to keep enemies on the 1-12 range.
I made the parallel processes, but got stuck on "...then event positions too as different variables and do a math of player x - event 1,2,3... x and player y - event 1,2,3... y if the result is 1 or whatever distance you want you apply the changes, for example if distance is 2 for flashlight you change the color."
How do I compare these numbers?
Also could you check these photos below if i wrote it correctly?

3.jpg2.jpg1.jpg
4.jpg
 

Latest Threads

Latest Posts

Latest Profile Posts

ScreenShot_8_19_2022_8_51_4.png
Both Mike and Ray here are in a "HYPE!" state after Mike uses "Wild Party", which also heals everyone. they'll do more damage and counter more often, but defense is lower along with hit rate.
WHEEL3.gif
Ooker spookers and fun attack mechanics! What a Friday!
Not today... Not today...
I guess I should send my CV to Hasbro. I've made Monopoly cheaters edition more fun and challenging. I've developed custom cheats and chest/chance cards for it. And I've cleared many nightmares through my cards and rules.
I'm only missing 2 more bgms for my game but maaaaan, searching for these tracks is killing me. Can't find anything good to replace MZ's Theme 2 and Scene 5 I have as placeholders. Everything is too epic or too evil or too alarming. That 'scene 5' track in particular would fit nicely with my scene. Well, at least I finally figured what my last click-fest of a gameplay element will be like, so something positive :D

Forum statistics

Threads
124,707
Messages
1,165,417
Members
163,520
Latest member
Foxx042
Top