Game over when seen by an event?

Fragarachu

Veteran
Veteran
Joined
Apr 19, 2018
Messages
59
Reaction score
2
First Language
Indonesia
Primarily Uses
RMVXA
Hello, is there a script for a event that when the event direction is looking at you, it instantly runs game over or text?
I don't want it to be stupid.

So for example, i've made a event that is walking on his move route.
If i hide behind something (like a closet that you can't walk in) in front of him, it will still not trigger you.
If you are in front of it with you standing on walkable tile(like grass), it will trigger game over.

Sorry if there's something wrong in the post, the post is hard to understand, or my bad english.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
It is possible with eventing but it isn't simple.

Press F7. Set regions to the map.
1 is free air, 2 is an obstacle that player can cover


You need a Conditional Branch that checks if the X is the same with the enemy. IF so...
________ you have to next another Conditional Branch to check if the X of the player is bigger. I if it is...
____ If enemy is facing left then
Game Over

You need a Conditional Branch that checks if the X is the same with the enemy. IF so...
________ you have to next another Conditional Branch to check if the X of the player is smaller I if it is...
____ If enemy is facing right then
Game Over


Do the same for Y axis and Up and Down facing respectively.
This must be checked in a parallel process and you must add a wait(10) on the beginning of that event.

Now imagine that you must add the region in logic.


You need a Conditional Branch that checks if the X is the same with the enemy. IF so...
________ you have to next another Conditional Branch to check if the X of the player is bigger. I if it is...
____ If enemy is facing left then
_______you have to make a loop for all x tiles between you and the enemy.
Conditional branch to check if a region is 2 If so.
___ do nothing
Else
___Game Over
End the branch
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top