Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> AlphaWhelp's Comic Book Scenes, Add a comic book scene to your game!
AlphaWhelp
post May 15 2009, 07:55 PM
Post #1


Level 9
Group Icon

Group: Revolutionary
Posts: 147
Type: Developer
RM Skill: Skilled




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


Introduction

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.

Features

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


Script

[Show/Hide] AlphaWhelp's Comic Book Scene
CODE
=begin

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.

Instructions:
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.

-AlphaWhelp

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

=end

class Scene_Comic_A

# BEGIN CONFIGURATION

COMIC=<<_END_
Scene1
Scene2
Scene3
Scene4
ENDCOMIC
_END_

# END CONFIGURATION

def main
comic_pages = COMIC.split(/\n/)
@sprite = Sprite.new
Audio.me_stop
Audio.bgs_stop
Audio.se_stop
@firsttime = true
comic_pages.each_index do |i|
@page = comic_pages[i]
@keypressed = false
if @firsttime
@sprite.bitmap = Cache.picture(@page)
Graphics.transition
Graphics.update
@firsttime = false
else
until @keypressed
Input.update
Graphics.transition
Graphics.update
continue
end
end
if $scene != self
break
end
end
end

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

def continue
return if cancel?
end
end


Customization

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.


Compatibility

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


Screenshot

Can't really show you the script with screenshots.


DEMO

http://www.megaupload.com/?d=J7K8Z4M9


Installation

To install this script into an existing game, you will need these files...
http://www.megaupload.com/?d=SY1J62W2

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.


FAQ

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.


Credits

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 SBS with ATB: http://www.rpgrevolution.com/forums/index....showtopic=18304 (scroll to the middle of the first post and find it under Add-ons)

Old Fashioned Game Overs http://www.rpgrevolution.com/forums/index....ic=29201&hl

Comic Book Cut Scenes http://www.rpgrevolution.com/forums/index....showtopic=30920

Force Preemptive or Surprise Battles: http://www.rpgrevolution.com/forums/index....showtopic=31668

[Show/Hide] Script Snippets written by me:
Fade Victory ME after battle end (fully compatible)
CODE
class Scene_Battle < Scene_Base
alias kill_victory_me battle_end
def battle_end(result)
RPG::ME.fade(500)
kill_victory_me(result)
RPG::ME.stop
end
end

Simple footsteps sound: Note Knock is a pretty terrible footstep sound, you should download your own.
CODE
class Game_Party < Game_Unit
alias footsteps_on_player_walk on_player_walk
def on_player_walk
footsteps_on_player_walk
RPG::SE.new("Knock", 1, 150).play
end
end

More to come as I think of them.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
CerberusXV
post Jun 8 2009, 08:16 PM
Post #2



Group Icon

Group: Member
Posts: 1
Type: None
RM Skill: Undisclosed




This seems fairly useful. I'll have to try and use it in one of my future games. (The comic in the demo is so beautiful...I've never seen a comic like that before =D)


__________________________
[Show/Hide] Can you read this?
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.
Go to the top of the page
 
+Quote Post
   
AlphaWhelp
post Jun 9 2009, 04:51 PM
Post #3


Level 9
Group Icon

Group: Revolutionary
Posts: 147
Type: Developer
RM Skill: Skilled




QUOTE (CerberusXV @ Jun 9 2009, 12:16 AM) *
This seems fairly useful. I'll have to try and use it in one of my future games. (The comic in the demo is so beautiful...I've never seen a comic like that before =D)


I no rite


__________________________
My scripts...

Haste/Slow States for Tankentai SBS with ATB: http://www.rpgrevolution.com/forums/index....showtopic=18304 (scroll to the middle of the first post and find it under Add-ons)

Old Fashioned Game Overs http://www.rpgrevolution.com/forums/index....ic=29201&hl

Comic Book Cut Scenes http://www.rpgrevolution.com/forums/index....showtopic=30920

Force Preemptive or Surprise Battles: http://www.rpgrevolution.com/forums/index....showtopic=31668

[Show/Hide] Script Snippets written by me:
Fade Victory ME after battle end (fully compatible)
CODE
class Scene_Battle < Scene_Base
alias kill_victory_me battle_end
def battle_end(result)
RPG::ME.fade(500)
kill_victory_me(result)
RPG::ME.stop
end
end

Simple footsteps sound: Note Knock is a pretty terrible footstep sound, you should download your own.
CODE
class Game_Party < Game_Unit
alias footsteps_on_player_walk on_player_walk
def on_player_walk
footsteps_on_player_walk
RPG::SE.new("Knock", 1, 150).play
end
end

More to come as I think of them.
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 11:22 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker