iPhone App Directory
RPG Maker VX
Gallery Members Search Calendar Help

Welcome Guest ( Log In | Register )



Keep an eye out for the upcoming 3rd Quarter Contest!
Closed TopicStart new topic
> AlphaWhelp's Comic Book Scenes, Comic-style cutscenes for your game.
post May 16 2009, 05:35 AM
Post #1

You can dance if you want to, you can leave your friends behind.
Group Icon

Type: Coder

Version - 0.1a
Author - AlphaWhelp
Release Date - 5/15/09


For those of us who can draw... or have a big budget, but not nearly enough for a full animated movie, I have created a script which will add a comic book scene to your game. If you have ever played Folklore, you get the idea what kind of scene this can create for you (although it won't look anywhere near as fancy). This script is great for creating cut scenes in which you want to show action that simply can't be done with sprites and animations. You're on your own to get the comic pages, though.

Yes I know this can be done with events--but I wrote this script because...

1. It was an experiment to see if I could do it.
2. I was motivated to do it.
3. I like to program.
4. This makes adding comic book cutscenes to your game very very easy so you can do it without being an event command master.
5. The process for adding comic scenes is more streamlined with a script.


Uhh, in case it wasn't obvious, this script only has one feature--add a comic book cutscene to your game



This script allows you to quickly and easily add a comic book scene to
your game. When the script is called, it opens up by displaying the
first page of your comic. Pressing the enter key will turn to the
following page in your comic, accompanied by a nifty little page flip
sound effect. When you have reached the last page of your comic,
pressing the enter key once more returns you to the map.

To call a comic scene, make an script event command that looks like:
$scene = Scene_Comic_A.new

To put pages into your comic scene, first import your comic pages into
the Pictures folder in the resource manager, then, between the lines:
COMIC=<<_END_ and ENDCOMIC type the names of the pages in the order
that you wish to appear. Do not leave any blank lines between these
two lines because doing so will cause a black page.

Currently this script does not support multiple comic scenes, however
for every comic scene you wish to have in addition to the first,
simply copy and paste this script directly underneath itself, then
change the line "class Scene_Comic_A" into "class Scene_Comic_B" then
delete the lines in the second script between COMIC=<<_END_ and
ENDCOMIC and replace them with the pages of your second comic scene.
Then, to call the second comic scene, make a script event command:
$scene = Scene_Comic_B.new

There is no theoretical limit to the number of comic scenes you can
have this way, have fun and enjoy the script. Credit to AlphaWhelp.


Comic Book Scenes version 0.1a
Created 5/15/09 11:22 p.m.


class Scene_Comic_A




def main
comic_pages = COMIC.split(/\n/)
@sprite = Sprite.new
@firsttime = true
comic_pages.each_index do |i|
@page = comic_pages[i]
@keypressed = false
if @firsttime
@sprite.bitmap = Cache.picture(@page)
@firsttime = false
until @keypressed
if $scene != self

def cancel?
if Input.trigger?(Input::C)
if @page == "ENDCOMIC"
$scene = Scene_Map.new
@keypressed = true
return true
@sprite.bitmap = Cache.picture(@page)
@keypressed = true
return true
return false

def continue
return if cancel?


The only thing you will be able to change about this script is the sound effect that plays when flipping a page. There are many sound effect websites you can look up to find a page flip sound effect. It's a common enough sound effect that you can probably find one that is public domain, but if you get one with a credit for the one who recorded it, you must remember to credit that person in addition to me when using this script.


Barring bizarre circumstances that I can't even imagine, this script should be compatible with every other script you have in your game.


Can't really show you the script with screenshots.




To install this script into an existing game, you will need these files...

Import PageFlip into Audio/SE and import the PNG files into Graphics/Pictures
the PNG files are provided for you to test the comic book scene--they are not an actual comic, just testing files.


Q: How do I install this script?

A: Copy and paste it below Materials and above Main, but it doesn't matter where in between it goes. Do not forget to download the accompanying files or else your game will crash when it tries to access them.

Q: There's a completely blank black page in my comic?

A: You left a blank line in a place where the instructions specifically said don't leave a blank line. Please reread and follow the instructions provided in the script in its comments.


All credits to AlphaWhelp, please and thank you.

Terms and Conditions

You must credit me if you use the script, and you must credit whoever drew your comic. If you can draw your own comics, congratulations. YOU MAY NOT USE THIS SCRIPT AT ALL IF YOU PLAN ON USING COPYRIGHTED IMAGES IN YOUR COMIC SCENE WITHOUT PERMISSION FROM THE PERSON WHO DREW THEM. I DON'T CARE HOW OBSCURE THE IMAGE OR ARTIST IS. DON'T DO IT.

My Scripts:
Haste slow States for Tankentai with ATB 1.1c: http://www.rpgmakervx.net/index.php?showtopic=3781 (scroll down to about halfway through the first post and find it under add-ons.)

Old Fashioned Gameovers: http://www.rpgmakervx.net/index.php?showtopic=11819

Comic Book Scenes: http://www.rpgmakervx.net/index.php?showtopic=14072

Force Preemptive or Surprise battles: http://www.rpgmakervx.net/index.php?showtopic=15135
Go to the top of the page
+Quote Post
post May 16 2009, 10:02 AM
Post #2

Group Icon

Very nice.
Downloading demo now.

Spoiler: --------------------

©Michele Giulietti (aka Wolfram) 2009
My Project

Save a life. Back up your projects.

©Michele Giulietti (aka Wolfram) & aeriagames 2009

Go to the top of the page
+Quote Post
Chris Gordon
post Mar 29 2010, 12:04 AM
Post #3

Group Icon

Type: Writer
Alignment: True Neutral

Downloading Now. Tell you what I think when I'm done trying it out.
Go to the top of the page
+Quote Post
Mr. Bubble
post Mar 29 2010, 03:10 AM
Post #4

Group Icon

Type: Undisclosed
Alignment: Unaligned

No necroposting. This is a verbal warning.

AlphaWhelp, PM me if you would like this topic reopened.

I no longer support Tankentai.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


Lo-Fi Version Time is now: 1st October 2014 - 11:21 AM

RPGMakerVX.net is an Privacy Policy, Legal.