How do I make a cutscene in ACS

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

How do I make a cutscene in ACS

Post by crazyflyingdonut »

I've seen a lot of mods that have cutscenes where they get the camera in Point A, and in a couple of seconds the camera cuts to Point B.

I already know how to freeze the player for the cutscene, how to execute a script when passing a linedef, how to add text, and how to make the player wait a specified amount of time for the next part of the cutscene.

Really, all I'm asking for is how to make the camera do what I want it to do during a cutscene.
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

Re: How do I make a cutscene in ACS

Post by crazyflyingdonut »

Anyone? Come on, I can't seem to find any way to do it...
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: How do I make a cutscene in ACS

Post by Blue Shadow »

You do it by not bumping your thread after half a day. Be patient.
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

Re: How do I make a cutscene in ACS

Post by crazyflyingdonut »

Blue Shadow wrote:You do it by not bumping your thread after half a day. Be patient.
I'm sorry...
User avatar
Enjay
 
 
Posts: 27026
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: How do I make a cutscene in ACS

Post by Enjay »

Also, give us some clues. You say that you want to know "how to make the camera do what I want it to do during a cutscene" but no one else knows what you want the camera to do. Given that there are quite a few different things that can be done with a camera, a bit more information would help.

However, just in case it helps, here's the [wiki]ChangeCamera[/wiki] page and this old demo by Gooberman might help too.

www.aspectsweb.co.uk/enjay/doom/examples/camtut.zip
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

Re: How do I make a cutscene in ACS

Post by crazyflyingdonut »

Enjay wrote:Also, give us some clues. You say that you want to know "how to make the camera do what I want it to do during a cutscene" but no one else knows what you want the camera to do. Given that there are quite a few different things that can be done with a camera, a bit more information would help.

However, just in case it helps, here's the [wiki]ChangeCamera[/wiki] page and this old demo by Gooberman might help too.

http://www.aspectsweb.co.uk/enjay/doom/ ... camtut.zip
You know how in game cutscenes, when two people are talking to each other, the camera cuts to whoever is the next to talk? I don't think I'll be able to explain this too well...
User avatar
Enjay
 
 
Posts: 27026
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: How do I make a cutscene in ACS

Post by Enjay »

The ChangeCamera page that I linked to is the ACS command that you are looking for. Set up two cameras in the editor (one pointing at each character) give each one a unique tid, then use ChangeCamera to switch between the two cameras and (eventually) back to the player view.

[edit] Aw what the hell...

Is this something like what you are trying to do?

http://www.aspectsweb.co.uk/enjay/doom/ ... onvo01.zip

[/edit]
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

Re: How do I make a cutscene in ACS

Post by crazyflyingdonut »

Enjay wrote:The ChangeCamera page that I linked to is the ACS command that you are looking for. Set up two cameras in the editor (one pointing at each character) give each one a unique tid, then use ChangeCamera to switch between the two cameras and (eventually) back to the player view.

[edit] Aw what the hell...

Is this something like what you are trying to do?

http://www.aspectsweb.co.uk/enjay/doom/ ... onvo01.zip

[/edit]
YES! That demonstrated exactly what I had in mind! In that file, the camera cuts to show whoever is talking at the moment, it was a conversation between a Pink Demon and an Imp! It showed exactly what I was trying to tell you guys. Notice how the camera changes to show whoever is talking? That's what I would like to know how to do! Before I made this thread I have tried Googling it multiple ways and I never got anything-okay that's enough of my explanation, if it gets too much longer it'll be boring.
User avatar
Enjay
 
 
Posts: 27026
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: How do I make a cutscene in ACS

Post by Enjay »

In that case, what you need is exactly what I linked to earlier (the change camera page) and the file I attached has a scripts lump inside it (readable in GZDoom builder - load the file and hit F10) so everything you need is there.

Image

;)
User avatar
crazyflyingdonut
Posts: 68
Joined: Sun Jul 15, 2018 11:48 am
Graphics Processor: nVidia (Modern GZDoom)
Location: [REDACTED]

Re: How do I make a cutscene in ACS

Post by crazyflyingdonut »

[quote="Enjay"]In that case, what you need is exactly what I linked to earlier (the change camera page) and the file I attached has a scripts lump inside it (readable in GZDoom builder - load the file and hit F10) so everything you need is there.

[img]https://i.imgur.com/vcO6Sy4.jpg[/img]

;)[/quote]

Thank you very much! ^^
User avatar
Enjay
 
 
Posts: 27026
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: How do I make a cutscene in ACS

Post by Enjay »

No problem.

I guess it's worth explaining a few things (though they are on the wiki page). I used:

Code: Select all

Changecamera (1, 1, 0);
That would change the view of all players to a camera with tid 1 (there are two camera in the map, on with tid 1 and the other with tid 2 - you can see how I changed to each one in the script.). The first 1 is the camera tid, the second 1 tells GZDoom to change the view for all players.

If I'd used

Code: Select all

Changecamera (1, 0, 0);
(note the 0 instead of the second 1) it would have changed the view only for the player who activated the script.
That information might be relevant if you are making a map that is playable in multiplayer.

If I had used:

Code: Select all

Changecamera (1, 1, 1);
(note the 1 at the end) if the player presses the movement keys while in the camera view, he will instantly be put back to his own view.

And just for completeness, when I used:

Code: Select all

Changecamera (0, 1, 0);
(note the 0 at the start instead of a tid for a camera object) it changes things back to the player's viewpoint (the 1 means for all players again).
Post Reply

Return to “Scripting”