The RPG Maker Resource Kit
RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: Mr_Wiggles on December 13, 2009, 03:25:31 AM
-
OK, i see that a lot of people are asking about this on nearly every form alive.
I even wanted to learn how to do Light effects for a Characters Flash light or a lantern.
So i decided to try it out and make an event system that does such a thing.
Every thing that is needed to do such a task is enclosed in the demo, along with a few exsamples on how to use the flash light:
use by an item
use by a button
use by a switch
There are also detailed comments on why i did this or that to help explain what i was thinking.
Whats being used: "These can be changed to what ever you want them to be"
- Switches -
1 = Flash light - for use with button togle and Item
2 = Flash light button on - for Button comon event to be Parallel
- Variables -
1 = Screen X - for X placement of Light Picture
2 = Screen Y - for Y placement of Light Picture
- Commons -
1 = Flash Light
2 = Toggle on and off
3 = Button Pressing
NOTE: This is realy basic, it works yes but its not like true light... it will pass through walls and objects, and does not cast any shadows.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi929.photobucket.com%2Falbums%2Fad135%2FMr_Wigglez%2FLightTest.png%3Ft%3D1260674705&hash=af567a19622b201d8abd80d9b981553a372ac5f0)
Post your questions/ comments bellow.
-
This was really good. I'm going to use this in my game.
-
@stripe103 -
Glad you like it, im useing it as well for my zombie game, im hopeing to have a demo soon....
-
@mr_wiggles - simple and helpful = good job
can't wait to see this zombie shooter in action ^,^
~=[G@/\/\eF@Ce101]=~
-
Well, now all that remains is to make this something that runs out after a certain amount of time (which, I assume would be very easy) and then we have a special item that you need to stock up on to use (like batteries, or latern oil or somthing) that you use to make it keep on working!
EDITed in response to below post: Well, I would have figured it out eventually...
-_-
I feel stupid.
-
that wound be that hard make a common event that checks for "batteries" and then make a "wait" for so long then remove one batteries and then when no more batteries then the light gets turned off by the switch its turned on by...
i hope that wasn't too much to be explained.... ;)
-
You can do it!
-
@ Sashikinaroji - your not stupid... and if you have any more questions feel free to ask them... :)