Hello all!
So I just spent the past 2 hours reading script and trying to figure it out. In short, it seems to be pretty intuitive - I know nothing of scripting and writing code, but I'm a quick learner and learned how to modify/edit codes to fit my needs. Simple things. nothing major. It's really neat to see how the game engine handles data and displays things for us when we're playing biggrin.gif
I've come to the conclusion that I need to write a script to display some opening title sequences. Here is what I've deduced:
- First the game loads all of the tiles and characters, and a bunch of other things
- It then creates the title screen (loads the image you've selected in the system settings)
- Then it creates the dialogue box (new game, continue, shutdown)
So what I'm trying to do now is to display a couple of images before the engine initializes the title screen. Noobiness aside, I would like to "display image 1, "wait 60 frames," "display image 2," "wait 60 seconds," "display title screen."
I've come across some coding phrases, and I think this is what I should be posting to display an image:
But I don't fully understand how to use it. I also can't find any codes or whatnot that makes the system pause for a certain amount of time other than
I'm fully aware that the above code doesn't cause a pause in the flow, but it DOES change graphics. I've "frankencoded" a small bit to see what happens, and the above code has worked pretty good.
Now I'm stuck. To summarize: How do I straight up insert an image file from a directory on my computer? Is this, the insertion of a couple of images before the title screen, the best way to go about acheiving the effect I want? How do you pause the data stream, i.e. how do I pause the flow long enough for people to look at the images while playing my game?
Coding is fun! I've learned how to do simple things tonight, but I'm no coder, and I just need a push in the right direction!
Thanks alot!
~Drewz
So I just spent the past 2 hours reading script and trying to figure it out. In short, it seems to be pretty intuitive - I know nothing of scripting and writing code, but I'm a quick learner and learned how to modify/edit codes to fit my needs. Simple things. nothing major. It's really neat to see how the game engine handles data and displays things for us when we're playing biggrin.gif
I've come to the conclusion that I need to write a script to display some opening title sequences. Here is what I've deduced:
- First the game loads all of the tiles and characters, and a bunch of other things
- It then creates the title screen (loads the image you've selected in the system settings)
- Then it creates the dialogue box (new game, continue, shutdown)
So what I'm trying to do now is to display a couple of images before the engine initializes the title screen. Noobiness aside, I would like to "display image 1, "wait 60 frames," "display image 2," "wait 60 seconds," "display title screen."
I've come across some coding phrases, and I think this is what I should be posting to display an image:
Code:
#--------------------------------------------------------------------------
 # * Load Bitmap
 #--------------------------------------------------------------------------
 def self.load_bitmap(folder_name, filename, hue = 0)
  @cache = {} if @cache == nil
  path = folder_name + filename
  if not @cache.include?(path) or @cache[path].disposed?
   if filename.empty?
    @cache[path] = Bitmap.new(32, 32)
   else
    @cache[path] = Bitmap.new(path)
   end
  end
  if hue == 0
   return @cache[path]
  else
   key = [path, hue]
   if not @cache.include?(key) or @cache[key].disposed?
    @cache[key] = @cache[path].clone
    @cache[key].hue_change(hue)
   end
   return @cache[key]
  end
 end
end
Â
But I don't fully understand how to use it. I also can't find any codes or whatnot that makes the system pause for a certain amount of time other than
Code:
Â
# Execute transition
Graphics.transition
Â
I'm fully aware that the above code doesn't cause a pause in the flow, but it DOES change graphics. I've "frankencoded" a small bit to see what happens, and the above code has worked pretty good.
Now I'm stuck. To summarize: How do I straight up insert an image file from a directory on my computer? Is this, the insertion of a couple of images before the title screen, the best way to go about acheiving the effect I want? How do you pause the data stream, i.e. how do I pause the flow long enough for people to look at the images while playing my game?
Coding is fun! I've learned how to do simple things tonight, but I'm no coder, and I just need a push in the right direction!
Thanks alot!
~Drewz