PolvoT_GamesVX

Villager
Member
Joined
May 31, 2022
Messages
7
Reaction score
1
First Language
Catalan
Primarily Uses
RMVXA
Hi! So I'm making an Intro Screen before the Title Screen (using a tutorial), and it worked. BUT the intro is so damn long.
What's the script to skip it when you press "Enter"?
'Cause I tried with this but it didn't skip when I pressed "Enter".
Tell me what's the correct way to configurate it. I'll be very gratefull!
1664585262371.png
 

AkiraKotatsuhime

炬燵姫
Veteran
Joined
Jan 2, 2013
Messages
237
Reaction score
170
First Language
DE / ドイツ語
Primarily Uses
N/A
First of all we need to see everything what you have there to begin with.

This function on it's own is useless when there's nothing that is calling it. What I can see above (that might be your mainprocess of what is happening before the title) looks like a straight-forward process that doesn't allow anything to intervene, it just goes from beginning to end.

It wouldn't matter what kinda script I'd hand you over to skip something, it will not help. Your entire own pretitle-code needs a clever mainloop-structure that is working with an updating timer, operating depending on its current state and gets interrupted every frame by an input-check that can cancel the process to skip over to title-screen. That also means you can't use any other Graphics-module-function than #freeze and #update, you don't have frame-by-frame-control over #fadein, #fadeout or #wait.

~炬燵あ
 

PolvoT_GamesVX

Villager
Member
Joined
May 31, 2022
Messages
7
Reaction score
1
First Language
Catalan
Primarily Uses
RMVXA
First of all we need to see everything what you have there to begin with.

This function on it's own is useless when there's nothing that is calling it. What I can see above (that might be your mainprocess of what is happening before the title) looks like a straight-forward process that doesn't allow anything to intervene, it just goes from beginning to end.

It wouldn't matter what kinda script I'd hand you over to skip something, it will not help. Your entire own pretitle-code needs a clever mainloop-structure that is working with an updating timer, operating depending on its current state and gets interrupted every frame by an input-check that can cancel the process to skip over to title-screen. That also means you can't use any other Graphics-module-function than #freeze and #update, you don't have frame-by-frame-control over #fadein, #fadeout or #wait.

~炬燵あ
Okay, this is what I have:
I changed the name of "Screen_Title" to "Screen_Title2" and gave the "Screen_Title" name to the Intro screen, then, when the intro ends, it sends you to "Screen_Title2" (The real RPG Title), I just want to know how I can skip that to not have to wait and go directly to "Screen_Title2".
Here's the scripts.

RPG Maker Original Title Screen
1664621339422.png
Intro Screen
1664621676789.png

It wouldn't matter what kinda script I'd hand you over to skip something, it will not help. Your entire own pretitle-code needs a clever mainloop-structure that is working with an updating timer, operating depending on its current state and gets interrupted every frame by an input-check that can cancel the process to skip over to title-screen. That also means you can't use any other Graphics-module-function than #freeze and #update, you don't have frame-by-frame-control over #fadein, #fadeout or #wait.

~炬燵あ


Please, could you show me how to do that clever mainloop-structure? I'm just a begginer in scripts and I got so confused...
Show me an example about how the intro should be.
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,994
Reaction score
9,657
First Language
Indonesian
Primarily Uses
N/A
There you go. You can just drop it as is to see how it goes.
Ruby:
class IntroSample
  attr_accessor :ended
 
  def initialize
    @intropictures = ["Cobblestones1", "Cobblestones2", "Cobblestones3"]
    @spr = Sprite.new
    @spr.opacity = 0
  end
 
  def update
    @spr.bitmap = Cache.battleback1(@intropictures.shift)
    100.times do |i|
      Graphics.update
      Input.update
      if @intropictures.empty? || Input.trigger?(:C)
        self.ended = true
        break
      end
      if i >= 90
        @spr.opacity -= 50
      else
        @spr.opacity += 50
      end
    end
  end
 
  def dispose
    @spr.dispose
  end
 
end

introsample = IntroSample.new
loop do
  introsample.update
  break if introsample.ended
end
introsample.dispose
 

Latest Threads

Latest Profile Posts

KDS
Hey guys! Iam currently updating my free digital art shop , let me know if you need anything done :) https://forums.rpgmakerweb.com/index.php?threads/kds-free-open-digital-art-shop.17097/
Hello! I’d like to ask where is a good place to start logging about my game dev progress as production of my game goes forth
In one of our campus classrooms was a bag full of stuff people forgot there... my bag. That I forgot there xD
You know your room is too tiny for how much stuff you have when it gives you literal insomnia. I just cleared a bunch of stuff out and man it feels good!
1670381555475.png
Meet the Kernel. You encounter him in cyberspace. He's important!

Forum statistics

Threads
127,099
Messages
1,183,967
Members
167,028
Latest member
Edujandro
Top