Event movement conditions based on eye contact?

Status
Not open for further replies.

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
OK, so in one of my projects, I have two on-screen encounters, but I want them to act like this (below), how would I achieve this?
The first one moves much like a Dr. Who Weeping Angel, where it can move, but only if you don't make eye contact. It cannot move when eye contact with the player is made.
And the second is kind of the opposite, where it basically wonders at random, but the moment the player makes eye contact, it will basically charge at the player.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
How are you defining "eye contact" in this case?
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Trihan As in the event and the player are facing each other.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Okay, so a direct straight line without a cone LoS or anything. That simplifies things.

What range are you thinking in terms of tiles? 3-4 maybe? Or like right next to it?
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
Due to map sizes, around 10 tiles max
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
So the event would be able to "see" you from 10 tiles away?
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Ebanyle

So for the one who rushes, I would do something like this?
upload_2019-4-11_21-38-24.png

EDIT: It works for the rushing one if I put the script as a conditional branch. Just got to event a test for the other.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Ah okay, I was doing a native script solution for you, but if that works I won't have to. XD
 

Ebanyle

açspasl~d~dfflass
Veteran
Joined
Sep 2, 2016
Messages
338
Reaction score
200
First Language
Portuguese
Primarily Uses
RMVXA
Hmm, I think it's something like this! Going by the demo Vlue himself made, the setup would look like this:
Though I would recommend using a waaaaaaaay bigger value than 10.
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Ebanyle Thanks, I'll give that version a try in the morning when I have more time to work on the PC.

That worked! Thanks!
 
Last edited:
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top