Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Aarduil on Thu 06/10/2011 16:55:44

Title: How to create "circle of vision"around main character?
Post by: Aarduil on Thu 06/10/2011 16:55:44
Hello to the AGS community. :) I've been drawing the graphics and writing the music for a game for quite a while now, but I am quite inept in the field of programming, so I turned to AGS as it seems to fit a dialogue-heavy exploration game.

Since it all takes in one big map (a single big room in the AGS, it seems?), I want to make a circular "field of view" centered onto the main character. Sort of like this: http://imgur.com/fljBo (taken out from an RPG Maker VX game), but I want it to be completely black outside the circle of view.

Can that be accomplished in a (relatively) easy manner? If not, would someone care to assist me (can show assets, music, etc.)? :)
Title: Re: How to create "circle of vision"around main character?
Post by: pcj on Thu 06/10/2011 17:01:20
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=44308.0
Title: Re: How to create "circle of vision"around main character?
Post by: Aarduil on Thu 06/10/2011 18:54:12
Ah, should have searched for "fog of war" instead of "lighting". This is close enough; I only don't want previously explored territories to be visible (as with the provided example).
Title: Re: How to create "circle of vision"around main character?
Post by: Khris on Thu 06/10/2011 20:56:15
Hey,

this should be what you're looking for:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30137.0
Title: Re: How to create "circle of vision"around main character?
Post by: Aarduil on Thu 06/10/2011 22:10:09
You're absolutely right - this is what I'm looking for. I implemented it semi-successfully too... :) I'll ask for further assistance in the specific script thread.

Thanks!