Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 3585 times)
0 Members and 1 Guest are viewing this topic.
Offline tjjos

Junior Newbie

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


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

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  

EgonOlsen (42 views)
2018-06-10 19:43:48

EgonOlsen (22 views)
2018-06-10 19:43:44

EgonOlsen (43 views)
2018-06-10 19:43:20

DesertCoockie (197 views)
2018-05-13 18:23:11

nelsongames (124 views)
2018-04-24 18:15:36

nelsongames (123 views)
2018-04-24 18:14:32

ivj94 (864 views)
2018-03-24 14:47:39

ivj94 (125 views)
2018-03-24 14:46:31

ivj94 (768 views)
2018-03-24 14:43:53

Solater (140 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!