Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (679)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (732)
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 2706 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  
You cannot reply to this message, because it is very, very old.

Hydroque (4 views)
2016-05-26 14:45:46

Mac70 (33 views)
2016-05-24 21:16:33

theagentd (42 views)
2016-05-14 18:38:35

theagentd (73 views)
2016-05-10 22:37:41

theagentd (79 views)
2016-05-10 22:33:46

IanParcs (110 views)
2016-04-18 14:18:53

KaiHH (104 views)
2016-04-18 08:35:41

KaiHH (129 views)
2016-04-15 12:43:58

theagentd (133 views)
2016-04-14 02:16:17

theagentd (157 views)
2016-04-14 02:15:43
FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50 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!