Chaos Project

RPG Maker => Event Systems => Topic started by: Ryex on December 23, 2008, 11:27:49 pm

Title: [RESOLVED] Light follow the player
Post by: Ryex on December 23, 2008, 11:27:49 pm
I swear I could remember a topic like this some where but I couldn't find it so I'll start a new one.

Is there a way to have the map really dark (like black or nearly inposabul to see and then have a light follow the player like their holding a lamp so they can see the map in their immediate area?
Title: Re: Light follow the player
Post by: Fantasist on December 23, 2008, 11:40:53 pm
That's as simple as using the "Show Picture" evetnt command :P Here:
(http://img122.imageshack.us/img122/1858/lightpngiu3.th.png) (http://img122.imageshack.us/my.php?image=lightpngiu3.png)

Okay, that's my first try and it's not quite what I expected, but try it anyway. If you want to increase the radius, just zoom it.
Title: Re: Light follow the player
Post by: Ryex on December 24, 2008, 12:13:28 am
I thought about that but then I thought: what happens if the player reaches the edge of the map?
Title: Re: Light follow the player
Post by: Fantasist on December 24, 2008, 01:51:15 am
Hm, that's simple. You just need a larger image and some more eventing. I'll try to do it now, hang on.

Here:
(http://img187.imageshack.us/img187/5893/lightpngic0.th.png) (http://img187.imageshack.us/my.php?image=lightpngic0.png)

Now make a parallel process event and update the player position. Assign the player's screen X and screen Y to 2 variables. After that, update the image position.
Title: Re: Light follow the player
Post by: Ryex on December 24, 2008, 02:51:07 am
... oh ... I guess that I have a lot of eventing ahead of me... lol :P
Title: Re: Light follow the player
Post by: Blizzard on December 24, 2008, 06:53:25 am
Yeah, something like this happens when people don't name their topics appropriately. -_- Here you go:

http://forum.chaos-project.com/index.php?topic=694.0
Title: Re: Light follow the player
Post by: Hellfire Dragon on December 24, 2008, 08:24:04 am
RMF used to have a tutorial on thios but since they moved (which was a while ago I think, I haven't been there in ages) the original creator(Fire29demon) didn't re-post it. I still have it though ;) Here's a download link,
Download Here - Sendspace (http://www.sendspace.com/file/qxx6oh)