Main Menu
  • Welcome to The RPG Maker Resource Kit.

Torch item (XP)

Started by TeaBag, May 01, 2007, 04:48:47 PM

0 Members and 1 Guest are viewing this topic.

TeaBag

Hey you guys, I was wondering if there was an easy way to make a torch item, like the one from dragon quest.  Basically, you go in a cave and have a limited field of view, but when the item "torch" is used, the view expands a great deal.  I drew a little diagram to show what I'm talking about.. 



I'm just wondering how I should do the black circle part, a picture that follows the hero, and changes with common events?  That's my guess, but I'd like someone to walk me through it.  Plus, it'd be a nice bonus if the hero's sprite changed to a version where the hero is holding a torch.

Thanks!
Some friends mend.  Some friends depend.  Some friends lend.  Some friends send.  Friend.

InvaderZim

As far as I know, you use a black picture with the center cut out as the 'darkness'. As to how you center it on the hero all of the time, even when he is in the corner of the screen, I don't know. When the torch is used, throw a switch that changes the size of the hole in the picture (different picture witha larger cut out).
STILL NEED FEEDBACK ON MY RUNNING/JUMPING SYSTEM!
http://rmrk.net/index.php/topic,16158.0.html

Yawgmothsbud

I was recently working on the same thing: a simple yet limited way to do this is to have "dark" maps show the picture on entrance. The limitation is that you'll have to leave room between the edges of the map and the actual walls of the navigable area, or else when you enter a corner or go near the edge the picture will stop and your character will move out of the "light".
As for having a torch, just make another picture with a larger hole in the center and have it be shown instead of the first if the torch is held.

Kokowam

In one of the databases, you can get a fog of war thing. Then, you could just call script that when you have torch, sight is more. If you don't have torch, sight is smaller.

modern algebra

Quote from: Yawgmothsbud on May 01, 2007, 05:06:29 PM
I was recently working on the same thing: a simple yet limited way to do this is to have "dark" maps show the picture on entrance. The limitation is that you'll have to leave room between the edges of the map and the actual walls of the navigable area, or else when you enter a corner or go near the edge the picture will stop and your character will move out of the "light".
As for having a torch, just make another picture with a larger hole in the center and have it be shown instead of the first if the torch is held.

That limitation can be avoided by having the position of the picture dependent on the player's Screen X and Screen Y (through variables), rather than just set to cover the screen.

Yawgmothsbud