Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Can this be done.. Enemy avoids light?

Author
Message
Nigo
16
Years of Service
User Offline
Joined: 28th Mar 2010
Location: Derping behind you :O
Posted: 3rd Jan 2011 21:39
Im making horror game, and if this thing can be done, game will se succesfull..

So, in some parts of the game this enemy popups in DARK areas, so..If player runs to area where is lights, the enemy will disappear..

Can this be done? And i dont have any clue how to code..

"The Horror" Videogame is under developement =)
Demo will be released soon
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 3rd Jan 2011 23:40
You could use trigger zones in the light areas to destroy the enemy characters when you enter them and respawning the enemies in the dark areas, simplest way to do this....I think.
Nigo
16
Years of Service
User Offline
Joined: 28th Mar 2010
Location: Derping behind you :O
Posted: 4th Jan 2011 12:36
Well, i have tried it.

But what script i use to destroy enemy?
Its own script?

And do i place enemys name to trigger zones "if used"?

"The Horror" Videogame is under developement =)
Demo will be released soon
CrescentMoon
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 4th Jan 2011 22:14
actually you could set up a trigger area and set the "if used" section to activate enemy entities (grouping the ones you want to give an aversion to light together).

Afterwards edit the enemy's main script and set it to play the coward or run away AI for a certain period of time

[WIP] Paranorma ~ Trial of Life
Nigo
16
Years of Service
User Offline
Joined: 28th Mar 2010
Location: Derping behind you :O
Posted: 5th Jan 2011 13:37
Enemy must destroy, when he hits triggerzone.

I have tried "Destroy" in trigger zones MAIN option..

and i placed enemys name in triggerzones "If Used" option.

But i walks on it and continue walking

So enemy doesnt die..

Help?

"The Horror" Videogame is under developement =)
Demo will be released soon
catw hat eat grass
15
Years of Service
User Offline
Joined: 22nd Oct 2010
Location: Home :D
Posted: 8th Jan 2011 14:51
Fot the trigger zone make it
anydistwithin=1:activate=1 (so when the enemy enters the zone it is activated) then make the enemy :
:activated=1:destroy,coloff
the only problem is if you have any dinamic entity in the trigger zone the enemy will be destroyed...

Phoenix Games

Login to post a reply

Server time is: 2026-07-01 09:29:46
Your offset time is: 2026-07-01 09:29:46