Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
New threads (tutorials) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
Dec 18 2008, 07:07 AM
Post
#1
|
|
![]() ![]() Type: Musician Alignment: Unaligned |
[-Graphics-] Parallax Mapping Techniques
Difficulty: Moderate By: C7 Information to know Spoiler: So, what are we trying to do here? We're trying to make our game look unique and give it our own style. If you decide that tiles are not the way to go for your game, then this is where to turn. Things to keep in mind: Spoiler: Okay, we'll start with something fairly simple and move our way upwards. The first thing you need is a plan. Spoiler: CRUCIAL: Here's a good time to explain how parallaxes really work in the game. Spoiler: The drawing Spoiler: CRUCIAL: Passability Spoiler: Right click on your map in the map list window and choose this new parallax as the background and be sure to check €œShow in Editor€ so you can see what you're doing. You could stop right here if you wanted--and in many cases you may as well. This next part, though, is working with a second layer to create more depth. You can have multiple layers of parallaxes. There is just a necessary workaround to achieve it. The second layer NOTICE: The method for creating a second layer described in this tutorial is outdated and obsolete. TheOriginalWij's Fixed Image Script is a better alternative which you should use instead. That said, I'll be leaving the text of this section in case it remains useful for someone. Wij's script can be found here: Click to see code Spoiler: Thanks to Celianna for bringing this to my attention. Spoiler: Testing Spoiler: There are some things you should try to remember. This is much more resource intensive than tile-based stuff. It has a ton of potential, however, and can make your game look quite unique. My next tutorial will be using animated parallaxes in combination with other animated layers. I hope you enjoy! Please leave comments and feedback. Here is a demo in .zip format for you to try out. It is open source, but please make your own resources instead of using mine. There is no "up" walking animation on that character--deal with it Now that you're familiar with these techniques, why not check out part two!? This post has been edited by C-7: Oct 10 2010, 02:50 AM
Attached File(s)
-------------------- Courier
![]() Parallax Mapping Techniques Tutorial Parallax Mapping Techniques Tutorial, Part 2 TheOriginalWij: "I like to do the hard things." |
|
|
|
Dec 18 2008, 07:32 PM
Post
#2
|
|
![]() Moon Lady ![]() Type: Spriter Alignment: Chaotic Neutral |
This is an excellent tutorial. I bet a lot of people were already quite curious as to how to do it, and might try it out for themselves, despite the long hours it might take them (and me xD). The steps are well explained. Maybe I'll try doing that myself one day.
-------------------- |
|
|
|
Dec 18 2008, 08:39 PM
Post
#3
|
|
![]() Reverse the Polarity of the Neutronflow ![]() Type: Writer |
Quite impressive C7, and a very nice tutorial.
I love parallax mapping but don't have the patience for it. -------------------- |
|
|
|
Dec 19 2008, 01:59 PM
Post
#4
|
|
![]() Type: Undisclosed Alignment: Unaligned |
I think the use of a sprite as a second parallax is actually pretty good "thinking outside the box" genius.
|
|
|
|
Dec 19 2008, 05:33 PM
Post
#5
|
|
![]() Lurking... ![]() Type: Undisclosed Alignment: True Neutral |
A very amazing tutorial C-7. Thanks for making it, I think many will find this extremely useful. I am looking forward to see what new parallax designs others will be creating now xPP
-------------------- |
|
|
|
Dec 19 2008, 08:58 PM
Post
#6
|
|
|
• Inactive ![]() Type: Undisclosed Alignment: Unaligned |
Thanks a lot, C-7
This is informative tutorial. I'll try to create the background and charactersets, to see how it goes. Just for an experiment. Again, thanks! -------------------- |
|
|
|
Dec 20 2008, 12:15 AM
Post
#7
|
|
![]() Behold. Me. ![]() Type: Coder Alignment: Chaotic Evil |
This is a pretty and excellent tutorial.
Too bad I am not really good at photoshop... Why don't you make a tutorial teaching us how to make that kind of maps images with photoshop? Would be awesome with this tutorial, indeed. Thanks for it -------------------- ![]() STARE AT MY AWARDS: Spoiler: |
|
|
|
Dec 20 2008, 12:32 AM
Post
#8
|
|
![]() ![]() Type: Musician Alignment: Unaligned |
This is a pretty and excellent tutorial. Too bad I am not really good at photoshop... Why don't you make a tutorial teaching us how to make that kind of maps images with photoshop? Would be awesome with this tutorial, indeed. Thanks for it Hmm, I suppose I could. I gave the overall plan within photoshop, but I suppose I could show the art side of it, too. It'll have to wait until after the tutorial I'm working on now (animated parallaxes and other advanced crap), but that's a great suggestion! And thank you to everybody for the comments so far. Be sure to try out the demo--there's an extra, more complex map in there that should help people out a lot with model work! -------------------- Courier
![]() Parallax Mapping Techniques Tutorial Parallax Mapping Techniques Tutorial, Part 2 TheOriginalWij: "I like to do the hard things." |
|
|
|
Jan 27 2009, 04:53 PM
Post
#9
|
|
![]() Tell them I hate them ![]() Type: Undisclosed |
Hey C-7
Have you noticed significant lag when you do this? That's the only thing holding me back.. But then I reason that the tiles are pictures too, so it probably shouldn't lag. But the tiles are tiny.. the Parallax picture is huge.. But only a part of it is going to be displayed.. Still, I want your input on this. How many maps have you done like this? Does the biggest image you have lag? |
|
|
|
Jan 31 2009, 10:18 PM
Post
#10
|
|
![]() Type: Undisclosed |
wow im so using some of these
|
|
|
|
Feb 6 2009, 11:07 AM
Post
#11
|
|
![]() Type: Designer |
Hey C-7 Have you noticed significant lag when you do this? That's the only thing holding me back.. But then I reason that the tiles are pictures too, so it probably shouldn't lag. But the tiles are tiny.. the Parallax picture is huge.. But only a part of it is going to be displayed.. Still, I want your input on this. How many maps have you done like this? Does the biggest image you have lag? Thank you very much for the tutorial on how to do this, C-7. I've only recently discovered this rpg maker program and while VX was obviously more attractive to me since I have no programming skill at all, I was slightly concerned at first about VX's capabilities (due to the tileset limitation and battle view etc). However, you've provided some solutions here which are really fantastic. I would also like your input on the "resource" heavy issue (that Dr. Phill refers to), if you would be so kind as to elaborate. Much appreciated. |
|
|
|
Feb 9 2009, 02:49 PM
Post
#12
|
|
![]() ![]() Type: Musician Alignment: Unaligned |
I'm glad people are finding this useful! Be sure to try out the attached demo thing. In answer to the resources question, rmvx will run a little more resource-heavy than normal like this, especially with multiple layers, but not terrible. Events and scripts will kill it faster than parallaxes. I think the highest ram usage I've seen in windows task manager so far is in the 120 to 130MB range, which is pretty fair, I think. I've made 23 maps like this so far and haven't had any lag issues on the multiple computers that I've tested it on, but admittedly none of them were particularly weak computers. I could see some screen-tearing or brief jumps from time to time being possible, but I don't see this as much more resource-intensive than tiles so far, but I've not tried anything massive yet.
My largest maps so far have been (in tiles) 40x40, 35x50, and 40x28. The 40x40 is in the attached example demo and has quite a bit going on, including multiple large animations, transparencies, two layers (and a hidden ladder to a lower level), and no lag issues to speak of so far on any of my computers. So I would still do some testing on your end to see if you find computer situations that would make these lag, but they seem fine to me so far. The background image for the 40x40 map is a 1280x1280 PNG and comes to 2.29MB. I also have a second layer on top of the player the same size (technically, the image is 3840x5120, but most of that is blank) and it comes to 573KB. So 3MB and change for the whole thing, plus a few 45KB steam animations spread around to make the whole map. It really is quite manageable, I think. Let me know if you have any more questions! I hope this continues to be useful to people! -------------------- Courier
![]() Parallax Mapping Techniques Tutorial Parallax Mapping Techniques Tutorial, Part 2 TheOriginalWij: "I like to do the hard things." |
|
|
|
| Guest_zeroplumber_* |
Feb 9 2009, 08:59 PM
Post
#13
|
|
Guests |
This is a very nice tutorial. Well written with good examples. I think I may look into it after I finish with the modern resources.
|
|
|
|
Feb 17 2009, 10:42 PM
Post
#14
|
|
![]() Type: Undisclosed |
the second layer is really a good alternative. Very well thinked
|
|
|
|
Feb 18 2009, 03:09 AM
Post
#15
|
|
![]() Jack in, Mega-Man! ![]() Type: Designer Alignment: True Neutral |
Whoa snap, nice :D!
That map looks so nice, but the door and wall look a bit off to me :o. Great job. - Sen. This post has been edited by Senapho: Feb 18 2009, 03:10 AM -------------------- ![]() My project: ![]() |
|
|
|
Feb 26 2009, 12:29 AM
Post
#16
|
|
![]() Type: Undisclosed |
Hey. I'm trying to get a map I made to work using this technique, but it isn't working. I've done everything exactly like stated in the tutorial, but my second layer doesn't line up with my map, and when I move my character, the layer moves across the screen with me. What's going on?
|
|
|
|
Feb 27 2009, 09:44 PM
Post
#17
|
|
![]() ![]() Type: Musician Alignment: Unaligned |
Hey. I'm trying to get a map I made to work using this technique, but it isn't working. I've done everything exactly like stated in the tutorial, but my second layer doesn't line up with my map, and when I move my character, the layer moves across the screen with me. What's going on? I told you in the tutorial that making the second layer align with the first is troublesome and that you'll have to nudge the layer around in your image editing program. You may also need to move the event over a tile or something and then adjust the image (in your image editor, not in rmvx) from there. It works, I promise. You just need to have a little patience and make adjustments to make things work. I like to have something that's in the second layer also be in the bottom layer for alignment purposes. Then I can tell how many pixels I'll need to adjust it. You could also put a temporary grid or something in each image to make sure you have it lined up to the pixel correctly and then remove the grid. You just have to adjust. Now why the layer would move across the screen with you is something I can't answer for you. I honestly don't know how to do that unless you're setting up the event wrong (I'm confident you are). It sounds to me like you're placing an event that says "show picture" and that is entirely the wrong way to do it. It will then scroll with you because it is part of the screen and not part of the map. You need to place the second layer in a BLANK event and just choose the character graphic on the left side of the event window. (It says "Graphic" and then a box below it) ![]() Beyond that, all I can say is to download the demo. Its working in the demo I provided, try to open it up in rmvx and see what you're doing differently. I'm also going to edit that image into the tutorial just in case. -------------------- Courier
![]() Parallax Mapping Techniques Tutorial Parallax Mapping Techniques Tutorial, Part 2 TheOriginalWij: "I like to do the hard things." |
|
|
|
Mar 5 2009, 10:30 PM
Post
#18
|
|
![]() Type: Undisclosed |
Well, the only reason I mentioned it lining up incorrectly is because I thought it could be related to the real problem of it moving around when I move. I can easily adjust it to be on top of everything by moving it in photoshop exactly half a tile over. The real problem is it moving, and no, I didn't add it as a picture. I did exactly what you just said. I can't tell any difference between your demo and what I have done, so I have no clue why it's messed up.
|
|
|
|
Mar 6 2009, 07:54 AM
Post
#19
|
|
![]() ![]() Type: Musician Alignment: Unaligned |
I'd definitely be willing to take a look at your project file for you if you'd like to PM it to me (or a link or something). That's about the best help I can provide because from here, I'm really not sure how things are turning out how they are for you.
-------------------- Courier
![]() Parallax Mapping Techniques Tutorial Parallax Mapping Techniques Tutorial, Part 2 TheOriginalWij: "I like to do the hard things." |
|
|
|
Mar 8 2009, 01:43 PM
Post
#20
|
|
![]() Type: Undisclosed |
Problem with the link,cannot download the demo!Fix the link please.
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 20th May 2013 - 02:03 AM |
|
|