Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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 1405 times)
0 Members and 1 Guest are viewing this topic.
Offline tjjos

Junior Newbie





« Posted 2005-08-02 20: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 06: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
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #2 - Posted 2005-08-12 06: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (33 views)
2013-05-17 21:29:12

alaslipknot (42 views)
2013-05-16 21:24:48

gouessej (72 views)
2013-05-16 00:53:38

gouessej (71 views)
2013-05-16 00:17:58

theagentd (79 views)
2013-05-15 15:01:13

theagentd (74 views)
2013-05-15 15:00:54

StreetDoggy (114 views)
2013-05-14 15:56:26

kutucuk (138 views)
2013-05-12 17:10:36

kutucuk (138 views)
2013-05-12 15:36:09

UnluckyDevil (146 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.081 seconds with 20 queries.