Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Display Maps Under Maps, Make a cliff actually a cliff!
SuperMega
post Sep 7 2009, 01:54 PM
Post #1


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled





Version: 0.8
Author: The Staff of RGSS2Dai Page
Translation: SuperMega

Introduction
This is a translation of a fantastic script from Dai Page. I AM NOT the creator of this script, so I don't deserve full credit. I only translated the script, in order to share it with the English community. The primary functions of the script are translated, but not everything is. If anyone would like everything to be translated, please let me know. Let me also mention I can only help with basic problems, and not ones that involve the script.


Features
-Stacks a map ontop of another map, making a map appear higher up than the other (Basically, making the lower map like a parallax)
-EVENTS CANNOT BE PLACED ON A MAP THAT IS UNDER A MAP
-Maps must be the same size in order for this to work
-You can change the scrolling speed of the distance, you see (Don't Make the
player dizzy!)


Script
[Show/Hide] The script...
CODE
=begin
#-------------------------------------------------------------------------------
Display Maps Under Maps
Version: 0.8
Original Japanese Version From: RGSS2 DAIpage
English Translation By: SuperMega
#-------------------------------------------------------------------------------

Script Features and Use:
€€-Stacks a map ontop of another map, making a map appear higher up than the other
-EVENTS CANNOT BE PLACED ON A MAP THAT IS UNDER A MAP
-Maps must be the same size in order for this to work
-You can change the scrolling speed of the distance, you see (Don't Make the
player dizzy!)

This Script Redifines:
  Spriteset_Map

€€ Changing this script may result in compatability errors, so do so at your own
  risk...

Update Log:
08/12/16 šScript Released
09/9/7 : Script Translated!
=end
#============================================================================
# Begin Customization
#============================================================================

module DAI_tile_parallax
   #MapID => [map distance, X scroll speed, Y scroll speed]
   P = {
   # Map 1, with Map 2 shown in the distance. Both horizontal and vertical scroll at 1 speed.
   1 => [2, 1.4, 1.4],  
   } #DON'T ERASE!

end  
#============================================================================
# End Customization
#============================================================================  

#==============================================================================
# – Spriteset_Map
#==============================================================================
class Spriteset_Map
  #--------------------------------------------------------------------------
  # — ƒ“ƒƒƒƒƒˆのœˆ
  #--------------------------------------------------------------------------
  alias dai_tile_parallax_create_viewports create_viewports
  def create_viewports
    dai_tile_parallax_create_viewports
    create_tile_parallax
  end
  #--------------------------------------------------------------------------
  # — 解”
  #--------------------------------------------------------------------------
  alias dai_tile_parallax_dispose dispose
  def dispose
    @tile_parallax.dispose if @tile_parallax != nil
    dai_tile_parallax_dispose
  end
  #--------------------------------------------------------------------------
  # — ƒ•ƒƒƒ›–
  #--------------------------------------------------------------------------
  alias dai_tile_parallax_update update
  def update
    update_tile_parallax if @tile_parallax != nil
    dai_tile_parallax_update
  end
  #--------------------------------------------------------------------------
  # — ‚‚ƒƒžƒƒƒ—遠™IDの–—
  #--------------------------------------------------------------------------
  def tile_parallax_id
    if DAI_tile_parallax::P.include?($game_map.map_id)
      return DAI_tile_parallax::P[$game_map.map_id][0]
    else
      return 0
    end
  end
  #--------------------------------------------------------------------------
  # — ‚‚ƒƒžƒƒƒ—遠™のœˆ
  #--------------------------------------------------------------------------
  def create_tile_parallax
    if tile_parallax_id == 0
      @tile_parallax = nil
      return
    end
    a = Tile_Parallax.new
    a.setup(tile_parallax_id)
    @tile_parallax = Tilemap.new(@viewport1)
    @tile_parallax.bitmaps[0] = Cache.system("TileA1")
    @tile_parallax.bitmaps[1] = Cache.system("TileA2")
    @tile_parallax.bitmaps[2] = Cache.system("TileA3")
    @tile_parallax.bitmaps[3] = Cache.system("TileA4")
    @tile_parallax.bitmaps[4] = Cache.system("TileA5")
    @tile_parallax.bitmaps[5] = Cache.system("TileB")
    @tile_parallax.bitmaps[6] = Cache.system("TileC")
    @tile_parallax.bitmaps[7] = Cache.system("TileD")
    @tile_parallax.bitmaps[8] = Cache.system("TileE")
    @tile_parallax.map_data = a.data
  end
  #--------------------------------------------------------------------------
  # — ‚‚ƒƒžƒƒƒ—の›–
  #--------------------------------------------------------------------------
  def update_tile_parallax
    a = DAI_tile_parallax::P[$game_map.map_id]
    @tile_parallax.ox = $game_map.display_x / 8 * a[1]
    @tile_parallax.oy = $game_map.display_y / 8 * a[2]
    @tile_parallax.update
  end
end
#==============================================================================
# – Tile_Parallax
#==============================================================================
class Tile_Parallax
  #--------------------------------------------------------------------------
  # — ‚ƒ–‚‚‚ƒˆˆœŸŒ–
  #--------------------------------------------------------------------------
  def initialize
    @map_id = 0
  end
  #--------------------------------------------------------------------------
  # — ‚ƒƒƒˆ‚ƒƒƒ—
  #--------------------------------------------------------------------------
  def setup(map_id)
    @map_id = map_id
    @map = load_data(sprintf("Data/Map%03d.rvdata", @map_id))
  end
  #--------------------------------------------------------------------------
  # — ƒžƒƒƒ—ƒ‡ƒ‚の–—
  #--------------------------------------------------------------------------
  def data
    return @map.data
  end
end



Compatibility
Untested with other scripts. Should work fine, with the exception of things such as Mode 7 (Though, that might actually work).

Screenshot



DEMO
I highly recommend playing the demo to get a good idea of how it can work.
Demo

Installation
Add the map ID's you wish to use this script for, with the scroll speed "X" and "Y."


FAQ
Q.Help!!! This script is giving me an error!
A.Sadly, I can't help with that. I merely translated this script, and have a weak scripting ability. You may want to contact the script makers, to see what you can do to get it to work properly. If there's something you don't understand about the script, then those kind of questions are ones I can answer.


Credits
RGSS2DaiPage Staff-The script
SuperMega-Translation
(Please credit both! Don't leave RGSS2Daipage Staff out of your credits! You know they did a great job!)


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
guzzleboy478
post Sep 7 2009, 02:05 PM
Post #2


Level 7
Group Icon

Group: Revolutionary
Posts: 109
Type: None
RM Skill: Skilled




Wow. That's really useful. Thanks for sharing!
Go to the top of the page
 
+Quote Post
   
SuperMega
post Sep 7 2009, 02:52 PM
Post #3


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




You're quite welcome quzzleboy478, it was simple to translate! I figured this was something never before seen, and it's completely useful too.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
link245
post Sep 7 2009, 06:46 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Advanced




I didn't know such a thing existed, thanks for the translation. Now I can actually have a real cliff in my game, without it looking awkward.


__________________________

Hmph...
-----------------------------------------------------------------------------------------------------------------------------------------
Current Project: Tales of Oblivion
Go to the top of the page
 
+Quote Post
   
platipus
post Sep 7 2009, 09:09 PM
Post #5


Level 11
Group Icon

Group: Revolutionary
Posts: 191
Type: Event Designer
RM Skill: Skilled




omg that is so awesome!!!!!!!!!!!!!!!!!!!!!!!!!!! i love u for this script smile.gif


__________________________
using xp now and will continue to until a better rpg maker
Go to the top of the page
 
+Quote Post
   
wltr3565
post Sep 8 2009, 02:14 AM
Post #6


Laugh with Neuro
Group Icon

Group: Revolutionary
Posts: 184
Type: Event Designer
RM Skill: Intermediate




The script looked rather simple, but effected very marvelous. I little envy you that you can read kanjis to translate the scripts biggrin.gif. Maybe I can use this script someday.

EDIT: This script's real effects is to make another map to be a parallax for the assigned map. So if you want to show a parallax, maybe won't show because it's replaced by the parallax map. Well, this saves us time to make a map parallax smile.gif


__________________________
Come on, I really need to revive this site:
Script Haven: Go!!!
Aren't good at making sigs though T-T




My simple scripting tutorial:


[Show/Hide] Don't forget:

Laugh with Neuro
Go to the top of the page
 
+Quote Post
   
SuperMega
post Sep 8 2009, 05:57 AM
Post #7


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




QUOTE (wltr3565 @ Sep 8 2009, 05:14 AM) *
The script looked rather simple, but effected very marvelous. I little envy you that you can read kanjis to translate the scripts biggrin.gif. Maybe I can use this script someday.

EDIT: This script's real effects is to make another map to be a parallax for the assigned map. So if you want to show a parallax, maybe won't show because it's replaced by the parallax map. Well, this saves us time to make a map parallax smile.gif

Yeah, it can do that too. Must have forgotten to mention it...*Edits thread*

Thanks for all the comments!


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
platipus
post Nov 4 2009, 06:55 PM
Post #8


Level 11
Group Icon

Group: Revolutionary
Posts: 191
Type: Event Designer
RM Skill: Skilled




can u allow the panorama/parallax of the map show as well?


__________________________
using xp now and will continue to until a better rpg maker
Go to the top of the page
 
+Quote Post
   
Jacklo
post Nov 4 2009, 07:26 PM
Post #9


Level 7
Group Icon

Group: Member
Posts: 99
Type: Developer
RM Skill: Intermediate




Might use this, thanks for spending the time to translate!


__________________________
Your future depends on your dreams - So go to sleep!
If you can't laugh at yourself, I'll do it for you.
"A lot... Thats my favorite number..."
Self-Proclaimed King of Eventing
Need an idea for an RPG???!

CLICK THE SHINIGAMI!


Click here to level up my card!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 11:17 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker