Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Tutorial: Video before main menu pop up

Author
Message
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 23rd Dec 2012 21:05 Edited at: 23rd Dec 2012 21:11
Hi guys,
Hopefully you found useful my tutorials which i sharing with the community. Giving a feedback is keep me up to share my experience/infos with you all.

So, i just figurated out a new thing. Video play before main menu show. I've downloaded many Fpsc x9 games and all started with the main menu ( some had video on player start ).

It's can be good for:
-Put your own logo into the game ( so if you make more people will know you)
-Put the TGC logo in it
-Put the short trailer of the game
-Put some warn into the video ( http://www.technopat.net/wp-content/uploads/2012/11/pegi-logos.jpg or selfmade similar stuff )
-Use your imagination

You will need:
-Your video

Setup:
1. Get your video into 2 part ( an avi file and a ogg file ). If you don't know how to do it visit my other post which deal with this problem: http://forum.thegamecreators.com/?m=forum_view&t=202388&b=23
2. Now build your game
3. Open your game folder then go into Files\videobank ( if you dont have feel free to create one )
4. Place here your video
5 Go back to Files then go audio bank ( yourgamename\Files\audiobank )
6. Place here your ogg file
7. Go back again for you Files folder then go 'languagebank' --> your language --> gamebank --> yourprojectname --> open 'titlepage.fpi' ( you can easy open with notepad. )
8. Place this script in front of the first ":state=0..." line

9. Done!

PS.: If you put your ogg file somewhere else then edit my code ( example: :state=0:music=audiobank\sounds\intro\yoursoundname.ogg same with the avi file).
PS2.: "Burger" gave me the idea where shoud i search to make my idea real.
PS3.: Feedbacks are welcome and ohh... Merry Xmast to all!

I don't buy games....i make them.
Burger
12
Years of Service
User Offline
Joined: 22nd Jun 2012
Location: New Zealand
Posted: 23rd Dec 2012 23:05
Quote: "PS2.: "Burger" gave me the idea where shoud i search to make my idea real."


, that's me!

Well thanks for sorting that out, at some stage I feel I make a short video for the start of my game. But does the audio have to be separate? Is that a glitch or something or has FPSC always had separate audio for videos? I've never used video zones you see.

"I'm inspired by my own wise quotes, thank you." - Burger, 6/7/12
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 23rd Dec 2012 23:44
Quote: "But does the audio have to be separate?"

Yes it is need to be separate. I've tried the video including the sound before i post this and it's doesnt work.. Btw, it's not a big deal to take 2 part it just moooaar time..


Quote: "thanks for sorting that out"

It's okay. First i need to thank you for the idea. I write down your name and will put it into my credit video at the end of my game. Soon i will open a post in the W.I.P. thread. If you intrest about it keep an eye on it.


Maxi.

I don't buy games....i make them.
speedytzr
11
Years of Service
User Offline
Joined: 18th Dec 2012
Location: Right behind you =O
Posted: 24th Dec 2012 06:54
Thanks for this tutorial, it works like a charm!

~speedytzr
Wheatleyy
13
Years of Service
User Offline
Joined: 1st Jan 2011
Location: Look to your right...
Posted: 25th Dec 2012 21:04
Added this to my helpful posts topic

THIS IS A SIGNATURE...
Wheatleyy
13
Years of Service
User Offline
Joined: 1st Jan 2011
Location: Look to your right...
Posted: 26th Dec 2012 20:38
Could this work using .jpg images instead of .avi's?

THIS IS A SIGNATURE...
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 26th Dec 2012 23:23
I guess it can just place the picture showing code insted of mine. but why would you do with pictures? Isnt easy to make an avi ( where pictures follow each other without sound )?


Maxi.

I don't buy games....i make them.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 28th Dec 2012 08:22
Hi maxi360
"(where pictures follow each other without sound)"?
Why no sound,or separate files? I use .wmv & .avi's all the time(with sound).One thing I did notice, I place my video path above the music path,like this.

That way the video plays before the music loads.
Lyonia Games
12
Years of Service
User Offline
Joined: 8th Feb 2012
Location: Mostar,Bosnia and Herzegowina
Posted: 7th Mar 2013 11:28
Thanks,man.I will test it soon!

Lyonia 4 Life
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 12th Mar 2013 23:25
@ncmako

Sorry for late reeply i was on....vacation
Well if you work with avi + ogg files then it must work correctly.

@Lyonia Games

You welcome.

I don't buy games....i make them.
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 15th Mar 2013 16:00 Edited at: 15th Mar 2013 16:08
You don't need to do this anymore as the latest version of fpsc support splash video.

Just put a video in the same directory and rename it splash and it should work.

It has to be an avi so it would look splash.avi


Nice tutorial anyway and was handy when this feature was not added.

best s4real

Pack ya games with vishnu packer its free. Vishnu game launcher is now released.
Help keep vishnu free by pledging now :- http://vishnu.chipin.com/vishnu
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 16th Mar 2013 23:07
@s4real

Does the splash video have sound?
Do i need to place into the main folder? ( like splash bmp )


Maxi.

I don't buy games....i make them.
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 17th Mar 2013 17:57
If it has sound on the video it should play it and yes unless its been changed it works the same as the splash.bmp .

best s4real

Pack ya games with vishnu packer its free. Vishnu game launcher is now released.
Help keep vishnu free by pledging now :- http://vishnu.chipin.com/vishnu
maxi360
12
Years of Service
User Offline
Joined: 26th Mar 2012
Location: Home
Posted: 18th Mar 2013 13:46
@s4real

Thnaks for your infos. It's sounds much easier than this tutorial. I'll try it when i have a test game or demo.


Maxi.

I don't buy games....i make them.

Login to post a reply

Server time is: 2024-11-23 16:39:35
Your offset time is: 2024-11-23 16:39:35