Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Cutscene before Title

Started by Sir Edeon X, November 07, 2006, 04:37:13 PM

0 Members and 3 Guests are viewing this topic.

Sir Edeon X

Okay, so to make the cutscene before title:

1) Build the map with the cutscene.



2) At the end of the cutscene put the event to "Return to Title Screen".



3) Build the actual game as you would normally do.



2) Make a new scene with the following code:

class Scene_Cutscene
def main
    $data_actors        = load_data("Data/Actors.rxdata")
    $data_tilesets      = load_data("Data/Tilesets.rxdata")
    $data_common_events = load_data("Data/CommonEvents.rxdata")
    $data_system        = load_data("Data/System.rxdata")
    $data_mapInfos     = load_data("Data/MapInfos.rxdata")
    $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables     = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party         = Game_Party.new
    $game_map           = Game_Map.new
    $game_player        = Game_Player.new
    @save_max = 3
    for i in 0..@save_max     
      if FileTest.exist?("Save#{i+1}.rxdata") : $scene = Scene_Title.new end
    end
    $game_map.setup(!!!!!!!!!!)
    $game_player.moveto(XXX, YYY)
    $game_player.refresh
    $game_map.update
    $scene = Scene_Map.new
  end
end


5) Change the "!!!!!!!!!!" in the script with the ID of the map, and "XXX" and "YYY" with the coordinates you want the hero to start at.



6) Change the Main script so that it begins at Scene_Cutscene and not at Scene_Title (change it after "Graphics.freeze").



And that's it! It will begin at your map, do the cutscene and then open the title screen.

~ Love me... I want you to love me... ~

Scripting Academy || My Deviantart || Project: Tsol - Aishite Aishite

Tired of:
Main character being found in a cliff and not being human;
Angel characters against demon ones;
Vampire characters falling in love with humans;
Human rebelling against Dragons;
More than one world in ACTUALLY one world;
DNA transfusions and mutations;
Powerful races and humans who amazingly rule almost every part of the world having absolutely no super power;
Demons being released after some time in "slumber";
Titles with Legacy or the name of the world on it;

Blizzard

Nice job. :) Looks good. *moves to Database*
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Nightwolf

Hey man this is sweet and neat.
im using it ^_^
Arlen is hot.

Arrow

All right, check it.

This script is the SHIT dawg, but it needs somethin' with more..."Pimp"...

Like, what if it sent you to the title, but if like, you didn't hit the buttonz urr sum shit, it would play da scene, nowadam sayin' my ni**a?

Cheal

#4
I followed what you said and yet when I try and play it an error pops up saying "?(x5) 'Scene_Cutscene' ? 23 ?(x3) SyntaxError ?(x8)". Know what the problem is?

(The ?(x_) was since ?(x3)= ???)

[Edit]
Btw, this is about XP and I got a screen. I'm really new at this, so I might have done something wrong, but I could use some help with this problem.


Got no good story ideas? Try using Seventh Sanctum. It's got millions of generators for things you might need.

Sir Edeon X

That error means you have an error at line '23' in 'Scene_Cutscene'.
Okay, line 23 is "$game_player.moveto(XXX,YYY). Make sure you have replaced the XXX and YYY
for example "$game_player.moveto(0,0)" if you want the player to start at 0,0.
~ Love me... I want you to love me... ~

Scripting Academy || My Deviantart || Project: Tsol - Aishite Aishite

Tired of:
Main character being found in a cliff and not being human;
Angel characters against demon ones;
Vampire characters falling in love with humans;
Human rebelling against Dragons;
More than one world in ACTUALLY one world;
DNA transfusions and mutations;
Powerful races and humans who amazingly rule almost every part of the world having absolutely no super power;
Demons being released after some time in "slumber";
Titles with Legacy or the name of the world on it;

Cheal

Sorry, but yet again, I have another error screen. This time it says this:


Here's what I have for it:


Got no good story ideas? Try using Seventh Sanctum. It's got millions of generators for things you might need.

Sir Edeon X

okay, gotcha. The thing is, when I told you to replace the '!!!!!' for the ID of the map, you replaced it with the name!
The ID is the number of the map, in this case 11!
go to line 22, and change it for '$game_map.setup(11)'
This does it.
~ Love me... I want you to love me... ~

Scripting Academy || My Deviantart || Project: Tsol - Aishite Aishite

Tired of:
Main character being found in a cliff and not being human;
Angel characters against demon ones;
Vampire characters falling in love with humans;
Human rebelling against Dragons;
More than one world in ACTUALLY one world;
DNA transfusions and mutations;
Powerful races and humans who amazingly rule almost every part of the world having absolutely no super power;
Demons being released after some time in "slumber";
Titles with Legacy or the name of the world on it;

Cheal

#8
*Hits head* Thanks, Edeon. Me not so smert some times. :P

[EDIT]
Whoot! It works now, and only a few problems, like the ID not being 011, but 013. It turned out awesome and it adds some flare to it. Thanks again for the awesome tut.  ;D


Got no good story ideas? Try using Seventh Sanctum. It's got millions of generators for things you might need.

nevfx

Cool, nice tut. This helps me alot!

Snailer


tSwitch

what I want to know is if it's possible to make it so that the player can press a button to go back to the menu halfway through the scene.

also, is it possible to make the scene re-play after time?

that and can I show pictures, like text during the scene?


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Snailer

You can do all what u want
Make a parralel proces event and put conditional branch *
If button (...) is pressed.
Return to menu

And u can use messages

I think  ::)

tSwitch

#13
what about going from menu to cutscene after say, a minute
how do I do that?

also, I didn't mean messages so much as a black screen with fading text or something like that. (unless I can do timed messages)

edit:like a combination of Blizzard's picture cutscene and this one.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

ShellShocked

Script 'Cut_Scene' line 23: SyntaxError occurred.

Wtf?

tSwitch

QuoteThat error means you have an error at line '23' in 'Scene_Cutscene'.
Okay, line 23 is "$game_player.moveto(XXX,YYY). Make sure you have replaced the XXX and YYY
for example "$game_player.moveto(0,0)" if you want the player to start at 0,0.

look up.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Valcos

At the beginning of my game I have it so the its like go to title menu or start cutscene...but then when I try to start the cut scene nothing happens? I used a common event and when you press cutscene thing it starts.....
Im to cool to have my own signature!!!

Atracious

#17
Is there a way to make it so that it starts the room with a picture covering it, displays a few boxes of text then fades to the map? And how do you make the screen go to a specific position/move? (also for some reason no text appears anywhere in my games, even the title menu O.o any ideas?)
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

tSwitch

1st question, I want to know that myself
2nd: universal font fix, try searching for it


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Blizzard

2nd: Either the stidkied "Blizzard's tricks" topic in Tutorials or "Tons of Add-ons" in Scripts Database. :)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

tSwitch

ok, thanks for handing out the location, now how about number 1?


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Atracious

Quote from: atracious on February 27, 2007, 12:24:32 AM
Is there a way to make it so that it starts the room with a picture covering it, displays a few boxes of text then fades to the map?
I figured this out, thanks to Blizzard. :)
You make an event that is a parallel process and then just put 'show picture' at the top, i actually got rid of the pic before displaying the text, but you don't have to :)
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

dracow

#22
Whats wrong? Screen shots from my error and my cut scene script
http://img252.imageshack.us/my.php?image=omgvb2.gif
http://img252.imageshack.us/my.php?image=omges0.gif
Please tell me what to do!

Atracious

Quote from: dracow on March 28, 2007, 01:21:40 PM
Whats wrong? Screen shots from my error and my cut scene script


Please tell me what to do!
first off: actually put the screens in...not off the hard drive but host them on imageshack then put the url in using the image icon.
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

Luminost

#24
EDIT: Oop, nevermind lol. I just realised what i had done wrong.

Great tutorial. Very helpful :).