Intro (a sequence of images Gif style) options?

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
rrTea
Posts: 461
Joined: Sat Feb 15, 2014 9:54 am

Intro (a sequence of images Gif style) options?

Post by rrTea »

I'd like to have a short intro before the game starts, like a short animated gif, something like this:
(link)
(if you just click on it, give it a bit of time to load)
So nothing special, just images changing on the screen with a bit of slidings and effects (not even synchronized with sound). I realize ZGE is meant for other things / I shouldn't be doing this but a nice intro would really help set the mood... doesn't hurt to ask I guess.
Last edited by rrTea on Fri Jun 10, 2016 9:37 am, edited 1 time in total.
User avatar
VilleK
Site Admin
Posts: 2221
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Intro (a sequence of images Gif style) options?

Post by VilleK »

I don't know any cross-platform way of doing this, but for windows you might look into converting a animated gif to an avi file and use some Win32 API functions to display it. I don't remember if we have had any such examples before? If Kjell is around then maybe he know.
User avatar
rrTea
Posts: 461
Joined: Sat Feb 15, 2014 9:54 am

Re: Intro (a sequence of images Gif style) options?

Post by rrTea »

I understand, maybe it can be done like that. Thanks for the suggestion, I didn't think of that!
jinxtengu
Posts: 93
Joined: Wed Oct 14, 2009 2:05 pm
Contact:

Re: Intro (a sequence of images Gif style) options?

Post by jinxtengu »

I know this is an old thread, but I am trying to get an avi to play at the start of a game, as an intro exactly as rrtea mentioned. Any ideas?
User avatar
Kjell
Posts: 1806
Joined: Sat Feb 23, 2008 11:15 pm

Re: Intro (a sequence of images Gif style) options?

Post by Kjell »

Hi jinxtengu,

There's no easy way to play a video without a DLL. On Windows there's the AVIFile interface .. but you can't use that from ZGE ( you'd need to write a wrapper ). And MCI commands don't really play nicely with a OpenGL application, it's possible to make it work but it's not exactly clean solution.

I'd advice going with a decoder DLL for a specific codec of your choice instead of a library that supports a "blanket" of codecs. You don't want to ship with a 100MB DLL just to play a 5MB intro AVI.

K
User avatar
rrTea
Posts: 461
Joined: Sat Feb 15, 2014 9:54 am

Re: Intro (a sequence of images Gif style) options?

Post by rrTea »

What I did for my intro is just show a bunch of images separately / in succession, using a Tileset component (so like a slideshow). It wasn't the same as playing a gif but it allowed me to time the music and sound effects very easily within ZGE. Not sure whether this solution can work for you, depends on how detailed your video is.
jinxtengu
Posts: 93
Joined: Wed Oct 14, 2009 2:05 pm
Contact:

Re: Intro (a sequence of images Gif style) options?

Post by jinxtengu »

Thanks for the responses. I think I'll be able to figure something out. :)

In response to rrTea, I'm curious about the game you mentioned, in that I wouldn't mind checking it out. Do you have a link to where it can be downloaded from?
User avatar
rrTea
Posts: 461
Joined: Sat Feb 15, 2014 9:54 am

Re: Intro (a sequence of images Gif style) options?

Post by rrTea »

I don't have a build online anymore but I managed to find an old video of what it looked like at one point in time, not the most recent version (I rearranged the story later) but that's the system I used:
video (right click & Save AS… skip to 01:12)
Post Reply