Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: RuneBlade on August 10, 2007, 11:24:17 PM

Title: Guard detection help
Post by: RuneBlade on August 10, 2007, 11:24:17 PM
I just whopped up the idea of making a small  classic system for guards to turn around every few seconds, and if they spot you, you loose basically.

I tried to make it really simple, I made an event for the Guard, and events for every square he can see.

Here is a small drawing. The guard is the G, and the rest is obviously where he can see, left right or down.

LLLL G RRRR
LLL DDD RRR
,,,,,,DDD,,,,,,,
,,,,,,DDD,,,,,,

So, I started out by making a page called "Down" on the guard as a parallel process. And every 4 seconds he should flash and go into another page, which he looks a different direction, then continue like that. The first page looks like this:

Switch "DOWN" is on
<>Wait 4.0 Sec
<>Flash Sprite: This Event, 0.5 Sec
<>Switch Operation: [0001: DOWN] OFF
<>Switch Operation: [0002:LEFT] ON

As far as I know that should do the trick, and on all the panels that he can see while the DOWN switch is on the script says he yells something if the hero walks on any of them.

The problem is that I must have done something wrong in the event since it wont turn around to the "LEFT" page, or I am just a moron and can't remember how a parallel process worked. If someone could point out how to fix this there will be pie and watermelon.
Title:
Post by: RuneBlade on August 14, 2007, 11:25:46 PM
Seriously I know most of you should be able to help me out.