Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Could someone make this SDK compatible?

Suain

Member

I vaguely remember there being an SDK conversion topic, but maybe I imagined things (or maybe the hack killed it) because I can't find it.

Anyway, I was wondering if it's at all possible for someone to make it so that this script works with the SDK? (also, it's by RPG Advocate, right? Just checking).

Or, if that's impossible, could someone point me towards another SDK compatible scrolling panorama script? And yes, I have searched on my own already. :please:
 
Okay Give me a few minutes (Next time use the SDK conversion request thread, the link is in my signature)

Also have you tried placing the script Below SDK?

Less than 10 minutes converting this

Code:
#--------------------------------------------------------------------------
# Begin SDK Log
#--------------------------------------------------------------------------
SDK.log('Scrolling Panoramas', 'RPG Advocate', 1.0, '12/17/06')

#--------------------------------------------------------------------------
# Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.state('Scrolling Panoramas') == true

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :autoscroll_x_speed
  attr_accessor :autoscroll_y_speed
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias advo_scroll_panorama_initialize initialize
  def initialize
    # The Usual
    advo_scroll_panorama_initialize
    # Setup Scroll Speeds
    @autoscroll_x_speed = 0
    @autoscroll_y_speed = 0
  end
end

class Spriteset_Map
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias advo_scroll_panorama_initialize initialize
  def initialize
    # Setup Instance Variables
    @scroll_point_x = 0
    @scroll_point_y = 0
    @scroll_frames_x = 0
    @scroll_frames_y = 0
    @scroll_speed_x = $game_system.autoscroll_x_speed
    @scroll_speed_y = $game_system.autoscroll_y_speed
    # The Usual
    advo_scroll_panorama_initialize 
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias advo_scroll_panorama_update update
  def update
    # Setup Scroll Speeds
    @scroll_speed_x = $game_system.autoscroll_x_speed
    @scroll_speed_y = $game_system.autoscroll_y_speed
    # The Usual
    advo_scroll_panorama_update
  end
  #--------------------------------------------------------------------------
  # * Update Panorama
  #--------------------------------------------------------------------------
  alias advo_scroll_panorama_update_panorama update_panorama
  def update_panorama
    # The Usual
    advo_scroll_panorama_update_panorama
    # Scroll Panorama
    scroll_panorama
  end
  #--------------------------------------------------------------------------
  # * Update Panorama Plane
  #--------------------------------------------------------------------------
  def update_panorama_plane
    # Update panorama plane
    if $game_system.autoscroll_x_speed == 0
      if $game_system.autoscroll_y_speed == 0
        @panorama.ox = $game_map.display_x / 8
        @panorama.oy = $game_map.display_y / 8
      end
    end
    a = $game_system.autoscroll_x_speed != 0
    b = $game_system.autoscroll_y_speed != 0
    if a or b
      @panorama.ox = @scroll_point_x
      @panorama.oy = @scroll_point_y
    end
  end
  #--------------------------------------------------------------------------
  # * Scroll Panorama
  #--------------------------------------------------------------------------
  def scroll_panorama
    return if @panorama.bitmap == nil
    w = @panorama.bitmap.width
    h = @panorama.bitmap.height
    @scroll_frames_x += @scroll_speed_x
    @scroll_frames_y += @scroll_speed_y
    while @scroll_frames_x >= 8
      @scroll_frames_x -= 8
      @scroll_point_x += 1
    end
    while @scroll_frames_x <= -8
      @scroll_frames_x += 8
      @scroll_point_x -= 1
    end
    while @scroll_frames_y >= 8
      @scroll_frames_y -= 8
      @scroll_point_y += 1
    end
    while @scroll_frames_y <= -8
      @scroll_frames_y += 8
      @scroll_point_y -= 1
    end
    @scroll_point_x -= w if @scroll_point_x > w
    @scroll_point_x += w if @scroll_point_x < -w
    @scroll_point_y -= h if @scroll_point_y > h
    @scroll_point_y += h if @scroll_point_y < -h
  end
end
#--------------------------------------------------------------------------
# End SDK Enabled Check
#--------------------------------------------------------------------------
end

Untested, but it should work let me know if you have any trouble with this

EDIT UPDATED
 

Suain

Member

Yeah, uh... Sorry for not using the SDK conversion thread but like I said; for some odd reason I couldn't find it.

Anyway, I have tried placing the original script under the SDK. Didn't work.

http://img.photobucket.com/albums/v305/suain/RPMXP/uhhelp.png[/IMG]

Um... Help?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top