Charas-Project

Game Creation => RPG Maker => Topic started by: Fisherson on October 20, 2014, 01:05:14 AM

Title: Need to know how to make a Cave Dark Circle thing
Post by: Fisherson on October 20, 2014, 01:05:14 AM
Ah that thing from Pokemon? Back in the first true cave you go through? How the light was all condensed around you if you didn't have the Flash HM? I tried several methods and none worked. Need it for my spooky game to add some spice to a part of the graveyard where the timer is minimal and you can't see much so it adds danger.
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Meiscool on October 20, 2014, 05:06:09 AM
Kinda like this?

https://www.youtube.com/watch?v=7M-4jOnpWxg&list=UU4xUnYiPBPgBZlPJoNELPow (https://www.youtube.com/watch?v=7M-4jOnpWxg&list=UU4xUnYiPBPgBZlPJoNELPow)
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Fisherson on October 20, 2014, 06:13:46 AM
Kinda like this?

https://www.youtube.com/watch?v=7M-4jOnpWxg&list=UU4xUnYiPBPgBZlPJoNELPow (https://www.youtube.com/watch?v=7M-4jOnpWxg&list=UU4xUnYiPBPgBZlPJoNELPow)

Yes only where it just moves with the hero.Though I got to say that looks awesome.
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Prpl_Mage on October 20, 2014, 07:24:51 AM
You create a picture that is all black but has a filled circle in the middle, this circle will be of the transparent colour.
Next you import this picture and makes sure that the circle is indeed transparent.
You now create a parallel process event somewhere.
This is where you can do at least 2 different ways:

1. The lazy one.
Put in a "show picture" and you choose your picture, then you fill in that it should use the transparent colour. then you add some 10-20% transparency to the picture so it isn't pitch black. Set the coordinates of the picture to be the middle of the screen.
Problem is, you also need to create a whole bunch of empty space on the edges of your map. 'Cuz the hero will walk out of the centre if you get close to the edge of the map (aka, the screen can't scroll any more).


2. The correct one
You set a variable equal to the Hero x coordinate and another variable equal to the Hero's Y coordinate.
Err... Can't really remember the rest. But I remember that setting the picture's coordinates equal to the hero's coordinates didn't work. You had to do something moor, requires mroe research.
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Fisherson on October 21, 2014, 04:36:08 AM
Well the lazy method worked! XD Thans Purps. You highlighted some things I was over looking and I because of this info I think I now understand how pictures work a bit more! ^_^ Thanks for the help man and thank Meis for being awesome and showing me that video too. o.O Makes me want to maybe reconsider trying to mod RPG maker to use the mouse...someday when I'm more experienced XD
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Meiscool on October 21, 2014, 04:42:17 AM
I recommend using this method instead, as it requires very little extra work and prevents graphical mishaps from occurring should you want more out of the system.

The parallel event will look like this:
Create variables equal to hero SCREEN X and SCREEN Y
Show picture X with cords being said variables
Label 1
Set hero screen x to hero screen x
Set hero screen y to hero screen y
"Move picture X to Hero screen X and Hero screen Y" with a 0.0 wait time with wait to proceed checked.
Jump to Label 1

That's it.

If you do it this way, you have to make the picture dimensions double the size of the screen (so ~ 640 by 480) to prevent the picture from clipping out of the boundaries if you aren't dead center.

Also, if you want that 'gradual fade' effect like in the video I posted, you will have to use multiple pictures with differing circle sizes.
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: Prpl_Mage on October 21, 2014, 05:48:40 AM
I recommend using this method instead, as it requires very little extra work and prevents graphical mishaps from occurring should you want more out of the system.

The parallel event will look like this:
Create variables equal to hero SCREEN X and SCREEN Y
Show picture X with cords being said variables
Label 1
Set hero screen x to hero screen x
Set hero screen y to hero screen y
"Move picture X to Hero screen X and Hero screen Y" with a 0.0 wait time with wait to proceed checked.
Jump to Label 1

That's it.

If you do it this way, you have to make the picture dimensions double the size of the screen (so ~ 640 by 480) to prevent the picture from clipping out of the boundaries if you aren't dead center.

Also, if you want that 'gradual fade' effect like in the video I posted, you will have to use multiple pictures with differing circle sizes.

Oh yeah that was it. The screen related coordinates. I also recommend using this one.
And yes, remember the wait command or the game can face some framedrop, that happened in my Dota RPG before rahl pointed it out.

Another way to do the gradual thing is to have the picture with different shades of gray circles around the "hole". As long as the picture is slightly transparent it will look pretty much the same. Screen = black, hole = transparent, first circle around hole = light shade of gray, circle 2 = dark shade of gray.
Title: Re: Need to know how to make a Cave Dark Circle thing
Post by: evmaster on October 31, 2014, 12:36:10 PM
For which Rpg maker? I think I have a tutorial in my bookmarks for Vx Ace.