Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How do I implement a real time cutscene in a Java 2D game engine?  (Read 2016 times)
0 Members and 1 Guest are viewing this topic.
Offline tjjos

Junior Newbie





« Posted 2005-08-02 18:24:45 »

Hi!

I'm a developing a game in my own 2D game engine. I have been able to implement the basic stuff and the game is playable. But now I want to include some kind of "real-time cutscene" in the game, stuff you would find in any game this days. I searched the web but I didn't find anything regarding this matter. Do you know of any good way of implementing this?

The easiest way may be to do an animation containing the whole cutscene, and then adding the animation to the engine, but I don't think this is the best way to do it. Any ideas?

Thx in advance.  Grin

Jos
Offline avidlinuxuser

Junior Newbie





« Reply #1 - Posted 2005-08-03 04:31:36 »

Use a script. Most professional games do. This way, rendering is exactly the same as your normal game. Initialize Script and set sprite positions -> Render Background -> Render Map and Sprites (Your Actors)  -> Update Sprites with script intstructions -> Scroll the background and map -> Start the rendering process over.

As for what scripting language to use, I prefer Beanshell. Its learning curve is fairly small.

Hopefully, this is helpful to you.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #2 - Posted 2005-08-12 04:20:38 »

Well I made a program for myself to actually do this, although I haven't needed it yet so it's not finished. Pretty much it's like a simple version of Flash where you can animate pen tools, circles, sqaures, imported images, etc. through a frame-by-frame basis or by tweening between keyframes. When you save an animation is create a .anim file, then you can import a java package that lets you run a .anim file directly with Java2D.

It's pretty useful for saving power and the like, but I'd rather do one in flash, export it as a .mov, and then use Java's media player to just play that. People have fast computers nowadays.

If you do want to do something like I mentioned, you can make your own animation maker in a few days pretty easily. I might even part with the source code of mine so you can modify it if you want. We'll see.

See my work:
OTC Software
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

SHC (24 views)
2014-11-25 13:00:59

SHC (23 views)
2014-11-25 12:53:45

Norakomi (21 views)
2014-11-25 12:26:43

Gibbo3771 (22 views)
2014-11-24 20:59:16

trollwarrior1 (36 views)
2014-11-22 13:13:56

xFryIx (74 views)
2014-11-13 13:34:49

digdugdiggy (52 views)
2014-11-12 22:11:50

digdugdiggy (46 views)
2014-11-12 22:10:15

digdugdiggy (41 views)
2014-11-12 22:09:33

kovacsa (68 views)
2014-11-07 20:57:14
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 23:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 23:36:02

List of Learning Resources
by Longor1996
2014-08-16 11:40:00

List of Learning Resources
by SilverTiger
2014-08-05 20:33:27

Resources for WIP games
by CogWheelz
2014-08-01 17:20:17

Resources for WIP games
by CogWheelz
2014-08-01 17:19:50

List of Learning Resources
by SilverTiger
2014-07-31 17:29:50

List of Learning Resources
by SilverTiger
2014-07-31 17:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!