Show picture on top of title screen

Status
Not open for further replies.

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I have my title screen, it comes up in the normal way. However, what I would like to happen is that after 2-3 seconds a picture appears on top of it.

The picture is the same size as the screen, so I don't have to worry about getting x,y coordinates, it just has to load up, but I have zero idea of how this might be implemented. Could anyone tell me how this is done?

Many thanks.

EDIT WITH CLARIFICATION
Following the post by Shaz, it appears that I shall need a small mod to the title screen script to do a countdown and then add a sprite.

So if anyone could help out with that, I would be extremely grateful.
Thanks.
 
Last edited:

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
on top of it all? or on top of the background, and below the main menu?
kind of like a "loading...." splash screen?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You'll need a script to do this. Pictures (as in the Show Picture event) and Game_Screen, where the pictures are held/displayed, only exist once a game has been started, so you can't use that approach. You will need a mod to your title screen script to do a countdown and then add a sprite to the screen.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@gstv87 Yes, on top of the background and below the main menu.
@Shaz thanks for the clarification. I'd hoped it could be done with a simple script call or something, but at least I now know how to edit the opening post with the info for a script request.

[mod]Moving this to RGSS3 Script Requests[/mod]
 

King Gerar

White Wolf
Veteran
Joined
May 15, 2012
Messages
165
Reaction score
212
First Language
Portuguese
Primarily Uses
RMMV
Do you use the default titlescreen? Will the image appear instantly after time or gradually?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
@Shaz thanks for the clarification. I'd hoped it could be done with a simple script call or something, but at least I now know how to edit the opening post with the info for a script request.
Yeah, like pictures, script calls are another thing that are run from events, which require a game to be in progress, so not available on the title screen.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@King Gerar I am using CRBeam's Pre-title splash screens. Unfortunately an update of the forum 2 or 3 years ago (maybe more now) wiped out the front page of a lot of threads, including the thread for this one. But it's a straightforward little script which allows you to show a couple of splash screens and play music before the title screen comes up.

The other title script I'm using is this one which allows me to change the title screen image at different points in the game with a simple switch.

The exact sequence I would prefer is for the title screen to come up. Then after 2 seconds, the extra image would appear and fade in over 1 or 2 seconds, above the background (stored in 'Titles2') but behind the command menu. The whole thing can't take too long because most players move on from the title screen pretty fast. This would happen each and every time the game is loaded, so is unaffected by the other script.
 

King Gerar

White Wolf
Veteran
Joined
May 15, 2012
Messages
165
Reaction score
212
First Language
Portuguese
Primarily Uses
RMMV
See if works as you wish.
Code:
module Kes_Config
  Img_name = "Picture"
end

class Scene_Title < Scene_Base
  alias kes_create_foreground create_foreground
  alias kes_dispose_foreground dispose_foreground

  def create_foreground
    kes_create_foreground
    @kes_sprite = Sprite.new
    @kes_sprite.bitmap = Cache.picture(Kes_Config::Img_name)
    @kes_sprite.z = @foreground_sprite.z - 1
    @kes_sprite.opacity = 0
    @kes_sprite_time = 0
  end
 
  def update
    super
    if @kes_sprite.opacity < 255
      @kes_sprite_time += 1
      if @kes_sprite_time > 120
        @kes_sprite.opacity += 5
      end
    end
  end

  def dispose_foreground
    kes_dispose_foreground
    @kes_sprite.bitmap.dispose
    @kes_sprite.dispose
  end
end
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@King Gerar It appears correctly, but after a second or so it disappears, which wasn't what I had intended. I'm sorry if I had given that impression.

EDIT
I fixed it. I change the line
if @kes_sprite_time < 360

to read
if @kes_sprite_time < 180

Now the image appears and stays there.

Thank you very much for your help. I do appreciate it.
 
Last edited:

King Gerar

White Wolf
Veteran
Joined
May 15, 2012
Messages
165
Reaction score
212
First Language
Portuguese
Primarily Uses
RMMV
I edited the code above, probably understood wrong. I suggest update it to avoid unnecessary process, even small.
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@King Gerar Thanks for the edit. Works smoothly.

Once again, I am most grateful for your help.

[mod]Closing, as solved.[/mod]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top