ACS/DIALOG - Make message pausing gameplay 'till dismissed

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
_bc
Posts: 19
Joined: Mon Jun 26, 2017 4:19 pm

ACS/DIALOG - Make message pausing gameplay 'till dismissed

Post by _bc »

Hello,

I'm currently thinking about having an image or a more discriptive hudMessage poping up whenever the player picks up items/weapons, in the vein of Metroid:

(For some reason I can't embed images.... well)
http://3.bp.blogspot.com/-3xI6EbJUnfc/V ... _00021.png

Since those would block quite a bit of screen; I'd prefer to have them pause the game, and disappear and resume on a keystroke....

Since I'm not all to experienced with ACS I might simply miss a function or special.
Found this discussion: viewtopic.php?f=18&t=25729.

Or could I for example somehow launch a DIALOG from my script (something I can't figure out too), and use this a s a substitute somehow?

Any ideas would be greatly appreciated :D
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

Re: ACS/DIALOG - Make message pausing gameplay 'till dismis

Post by gwHero »

I doubt if this is possible with ACS;
however, it's not too difficult to create a very simple ZScript menu (inheriting from GenericMenu) which does not much more than showing a screen with a text;
menu's by default pause the game and are released with the ESC key.
User avatar
_bc
Posts: 19
Joined: Mon Jun 26, 2017 4:19 pm

Re: ACS/DIALOG - Make message pausing gameplay 'till dismis

Post by _bc »

ZScript Menu, allright, I'll have a look.
Thanks :D
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

Re: ACS/DIALOG - Make message pausing gameplay 'till dismis

Post by gwHero »

Good luck! A few hints:

The class that shows the message and/or image in it's most simple form only needs to override the Drawer() method;
this class can be instantiated with Menu.SetMenu("nameoftheclass").
User avatar
_bc
Posts: 19
Joined: Mon Jun 26, 2017 4:19 pm

Re: ACS/DIALOG - Make message pausing gameplay 'till dismis

Post by _bc »

Thanks :D
Post Reply

Return to “Scripting”