Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Guard detection help
« previous
next »
Print
Pages: [
1
]
Author
Topic: Guard detection help (Read 1379 times)
RuneBlade
Unemployed Metalhead :/
Zealot
Posts: 646
Inactive sonovabitch
Guard detection help
«
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.
Logged
Religions, science, theories. Screw em all, I believe in Metal
RuneBlade
Unemployed Metalhead :/
Zealot
Posts: 646
Inactive sonovabitch
(No subject)
«
Reply #1 on:
August 14, 2007, 11:25:46 PM »
Seriously I know most of you should be able to help me out.
Logged
Religions, science, theories. Screw em all, I believe in Metal
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Guard detection help