Requesting a script conversion from VX Ace to MV(EXTREMELY EASY JOB)

I'll post the script here for easy access:










Spoiler
Spoiler




#===============================================================================
# * AEE - Second Parallax Layer
# * By Crazyninjaguy
# * http://www.planetdev.co.uk
# * Part of Cng's Ace Engine Evolution
# ---------------------------------------------------------------------------
# * Follow the script instructions to setup correctly.
#===============================================================================

$imported = {} if $imported == nil
$imported["AEE-ParallaxingLayers"] = true

module AEE
module Parallax
# Leave this line alone
MAPS = []

# Set this to true if you want MAP[Map ID] to have two parallax layers.
MAPS[49] = true
MAPS[50] = true
# To add a new map to the script, simply add MAPS[Map ID] = true
# on a new line. For example.
# MAPS[12] = true
# Without the '#' at the start of the line.

end # Parallax
end # AEE

class Spriteset_Map
include AEE:😛arallax
#=============================================================================
# * Create_parallax - ALIASED
#=============================================================================
alias aee_spritesetmap_parallaxing_createparallax create_parallax
def create_parallax
aee_spritesetmap_parallaxing_createparallax
@parallax2 = Plane.new(@viewport1)
@parallax2.z = 201 # Above Character
end # create_parallax
#=============================================================================
# * Dispose_parallax - ALIASED
#=============================================================================
alias aee_spritesetmap_parallaxing_disposeparallax dispose_parallax
def dispose_parallax
aee_spritesetmap_parallaxing_disposeparallax
@parallax2.bitmap.dispose if @parallax2.bitmap
@parallax2.dispose
end # dispose_parallax
#=============================================================================
# * Update_parallax - OVERWRITTEN
#=============================================================================
def update_parallax
if @parallax_name != $game_map.parallax_name
@parallax_name = $game_map.parallax_name
@parallax.bitmap.dispose if @parallax.bitmap
@parallax.bitmap = Cache.parallax(@parallax_name)
@parallax2.bitmap.dispose if @parallax2.bitmap
if MAPS[$game_map.map_id] == true
@parallax2.bitmap = Cache.parallax("#{@parallax_name}_layer2")
end
Graphics.frame_reset
end
if MAPS[$game_map.map_id] == true
@parallax.ox = $game_map.display_x * 32
@parallax.oy = $game_map.display_y * 32
@parallax2.ox = $game_map.display_x * 32
@parallax2.oy = $game_map.display_y * 32
elsif
@parallax.ox = $game_map.parallax_ox(@parallax.bitmap)
@parallax.oy = $game_map.parallax_oy(@parallax.bitmap)
end
end # update_parallax
end # Spriteset_Map



This script is so small that I'm fairly certain this is probably a less than 30min job for any professional javascripter. 🙂
I am not experienced with scripting, but I'm fairly certain that converting a Ruby-based script to a javascript based plugin will be a bit more difficult than initially expected.
I suggest never saying that something is "extremely easy job". If it was "extremely" easy, you could do it.


Also don't be fooled by the size of the code. just because the code is small, doesn't means it is easy. 


Anyway, there are plugins that allows that already:







Any of them allows the use of layers bellow the charset layer, that would act as a psedo parallax.
I'm looking for a conversion becuase the script needs to layer ABOVE the paralax, now if any of these plugins can do that and more, tell me which one if you would. 🙂
I can say for sure that mine can do this (just watch the demonstration video and you will see it). placing the layer above the parallax, bellow the tileset.


i didn't test the others, but I belive that all of them can do the same with proper setup.
Please do NOT post other people's scripts in your post. Unless you have modified it in some way, just post a link to the original thread/blog post where the script is introduced.
  • Previous Page
  • Next Page


I'll post the script here for easy access:











Hidden Content


This script is so small that I'm fairly certain this is probably a less than 30min job for any professional javascripter. 🙂

  • Previous Page
  • Next Page

I am a bit confused on how the plugin works, do I place it in my VX ace file, Do I place it in MV, how does the conversion work, dose it do it automatic or do I have to place my scripts into a folder and then convert it. Are there any instructions on how to use this plugin. 

Original thread: https://forums.rpgmakerweb.com/threads/requesting-a-script-conversion-from-vx-ace-to-mv-extremely-easy-job.55714/