Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (TedMar, AndrewAMD, dr_panther, 1 invisible), 1,186 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help with adding video cutscene between levels #187805
03/10/08 16:32
03/10/08 16:32
Joined: Feb 2008
Posts: 22
J
jsaechao Offline OP
Newbie
jsaechao  Offline OP
Newbie
J

Joined: Feb 2008
Posts: 22
Do anyone know how to add a video cutscene between levels? I know how to add levels and cutscenes in the game by using the preset script templates, but I don't know how to play a cutscene after a level. I tried adding an intro video in level 2 but when the player enters level 2, the game skips the intro video. But when I run level 2 by itself, it plays the intro video.

Re: Help with adding video cutscene between levels [Re: jsaechao] #187806
03/11/08 06:43
03/11/08 06:43

A
Anonymous
Unregistered
Anonymous
Unregistered
A



load a empty level (no player/npc/... actions) and start your video (maybe by an starter-entity in the level or by script).
wait until the video is played (or the user interrupts it) and load the next game level.

Re: Help with adding video cutscene between levels [Re: ] #187807
03/11/08 16:25
03/11/08 16:25
Joined: Feb 2008
Posts: 22
J
jsaechao Offline OP
Newbie
jsaechao  Offline OP
Newbie
J

Joined: Feb 2008
Posts: 22
npc?? How do you put a starter-entity in the level?

Re: Help with adding video cutscene between levels [Re: jsaechao] #187808
03/11/08 22:19
03/11/08 22:19
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
here try this instead
make a new script and name it what ever you want.
put this code in the new script then include the new script in your main script
Code:
 string loading_video = <video.mpg>;  //Change to your video
bmap loading_lv = <loading.bmp>; //Change to what ever
panel loadingscreen {
bmap = loading_lv; //loading screen name
flags = refresh,d3d;
}

function movie_play()
{
media_play (loading_video, loading_lv, 77);
}

function load_level()
{
loadingscreen.pos_x = (screen_size.x - bmap_width(loading_lv))/2; //centers loading screen
loadingscreen.pos_y = (screen_size.y - bmap_height(loading_lv))/2;

loadingscreen.visible = on; //displays loading screen
movie_play();
wait(3);
sleep(2);
loadingscreen.visible = off; //clears screen
bmap_purge(loading_lv);
LOAD_LEVEL <-->levelname<-->; //level name

}}


ACTION levelchange //*assign this to a map entity blocking the way out of the level*/!!!!
{

MY.INVISIBLE = ON; //makes entitie invisible
MY.ENABLE_IMPACT = ON; //enables player impact
MY.EVENT = load_level; //function name

}


That should work. Although there might be a problem when the video plays, it may not play the whole thing. I don't know. I'm pretty sure it will work though. BTW, this is written in A6 C-Script not A7 Lite-C.

Re: Help with adding video cutscene between levels [Re: xbox] #187809
03/12/08 04:54
03/12/08 04:54
Joined: Feb 2008
Posts: 22
J
jsaechao Offline OP
Newbie
jsaechao  Offline OP
Newbie
J

Joined: Feb 2008
Posts: 22
Thank you. I will give it a try.

Re: Help with adding video cutscene between levels [Re: jsaechao] #187810
03/17/08 19:32
03/17/08 19:32
Joined: Mar 2008
Posts: 23
J
jmasterx Offline
Newbie
jmasterx  Offline
Newbie
J

Joined: Mar 2008
Posts: 23
@xbox

could you make me an action that makes a sound play on a trigger? thanks

Re: Help with adding video cutscene between levels [Re: jmasterx] #187811
03/27/08 17:09
03/27/08 17:09
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Do you mean something like this
Code:
Sound* mysound = <sound.wav>; //Put your sound here
var mysound_handle;


function play_mysound()
{
mysound_handle = snd_play(mysound, 100, 0);
}

action iplaysound //attach this to the block that you want to trigger the sound
{
MY.VISIBLE = OFF;
MY.ENABLE_IMPACT = ON;
MY.EVENT = play_mysound();
}

Here Hope this helps.

Re: Help with adding video cutscene between levels [Re: xbox] #187812
03/27/08 17:48
03/27/08 17:48
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
function play_mysound()
{
mysound = my.string1;
mysound_handle = snd_play(mysound, 100, 0);
}

i suggest using this as event, thus you can set which sound will be played by editin entity's(trigger?) string1 in wed.


3333333333

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1