Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2008-02-06, 05:33 AM in reply to Goodlookinguy's post starting "This is easy to do I've done it. Make a..."
Ok well take this for an example, I found this script;
Code:
#=====================================================
#  *  Scrolling Text v 1.0
#     by shadowball
#     01.14.2008
#=====================================================
class Scrolling_Text < Window_Base
  def initialize
    super(0,480,500,512)
    self.contents = Bitmap.new(width - 32, height - 32)
    @text = {
    100 => 'Evil Eye Productions',
    101 => 'this does not mean anything',
    102 => 'Sentence 3',
    103 => 'Sentence 4',
    104 => 'Sentence 5',
    105 => '',
    106 => 'Sentence 6',
    107 => 'Sentence 7',
    108 => 'Sentence 8',
    109 => 'Sentence 9',
    110 => 'just another line of text',
    111 => 'Sentence 11',
    112 => "I don't know what I'm doing here",
    113 => '',
    114 => 'New Paragraph: Last Sentence'    
    }
    y = -32
    @text.sort.each do |keys, values|
      y += 32
      self.contents.draw_text(0,y,488,32, values)
    end
    self.opacity = 0
    refresh
  end
  
  def refresh
    self.y -= 1 if self.y > -512
  end
  
end

class Scroll

  def main
    @sprite = Sprite.new
    @sprite.bitmap = RPG::Cache.picture('scrollingtext')
    @shb_scroll_window = Scrolling_Text.new
    @shb_scroll_window.x = 80
    @shb_scroll_window.y = 480
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of windows
    @shb_scroll_window.dispose
    @sprite.dispose
    @sprite.bitmap.dispose
  end

  def update
    # Update windows
    @shb_scroll_window.refresh
    if @shb_scroll_window.y == -512
      $scene = Scene_Map.new
    end
  end

end
And i have seen it work on a demo.. But the bad thing is, i have tried putting this in my script database.. everything seems to go fine, SO i've made my intro (Before the title)And put a conditional branch (if press a go to title) then i would have this script... And the scrolling text won't come up. I typed "$scene = Scroll.new into a Call script command yet it still won't come up, i have also tried this on one of my "Real game" Maos but to no avail...
Old
Profile PM WWW Search
ironfist68 is neither ape nor machine; has so far settled for the in-betweenironfist68 is neither ape nor machine; has so far settled for the in-between
 
ironfist68
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
World Record Thread CrOnIc-KiLlA World Record Thread 47220 2024-06-18 09:59 PM
Deus Ex Intro Grav Deus Ex: Human Revolution 9 2002-10-29 04:32 AM
Scrolling sig feature Xenn Forum News, Suggestions and Discussion 11 2002-07-08 08:30 AM
Sphere Scripts Randuin General Gaming 6 2002-06-08 09:02 AM


All times are GMT -6. The time now is 01:25 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.