I'm trying to achieve the following effect using an ACS script but not quite sure how to pull this off...
In a part of my game, the player enters a corridor. At the end of the corridor is the apparition of the players friend. As he runs towards them, a linedef is meant to trigger a script that makes the game slow down dramatically as demons appear out of nowhere (though they are harmless) a sound plays and then the game returns to normal, removing the friend, demons and slow motion effects. It is meant to appear as an illusion or apparition that was in the players mind.
The slow motion effect is proving the most difficult. Any idea how I can achieve this effect please?
Thanks in advance!
ACS slow motion for effect for flashback
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!)
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!)
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
- Caligari87
- Admin
- Posts: 6174
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: ACS slow motion for effect for flashback
Unfortunately the engine isn't suited for this kind of effect. There's only really two things you can do in the game sim itself:
- Make custom monsters, weapons, etc, just for this scene, with special code that makes them move and animate slower. Obviously you have to swap these out for the normal ones somehow.
- Rapidly toggle the "time freeze" powerup for the player, at different intervals depending on how you want to adjust the effect.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: ACS slow motion for effect for flashback
If I use option 1, is there a way to slow the player movement as well?Caligari87 wrote:Unfortunately the engine isn't suited for this kind of effect. There's only really two things you can do in the game sim itself:
Option 1 is the only way you'll achieve anything approaching proper smoothness, but is quite complex and work-intensive. Option 2 is easier, but is obviously very choppy and is only really good for one "speed", ramping up and down usually looks terrible.
- Make custom monsters, weapons, etc, just for this scene, with special code that makes them move and animate slower. Obviously you have to swap these out for the normal ones somehow.
- Rapidly toggle the "time freeze" powerup for the player, at different intervals depending on how you want to adjust the effect.
- Caligari87
- Admin
- Posts: 6174
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: ACS slow motion for effect for flashback
Code: Select all
SetActorProperty(playertid, APROP_SPEED, 0.75);
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: ACS slow motion for effect for flashback
Nice one man! Cant wait to try this out.