YolkfolkThe Dizzy Fansite 0 logged in0 playing
Community discussion

Adding an option to skip WaitTime command

Started by R3TR080 on 17 August 2025 • 567 views

✓ Solved5 posts
#93117

Hi all, apologies if this has been asked before. I'm so close to finishing my first Dizzy game. I've been working on it since January using all the tips and tricks from this fantastic community and forum. 

I'm wondering if I could ask for some help involving the WaitTime command. I have added an intro to my game and I use the waittime(10), (for example) command so that players can read the text in my intro. I was wondering if there was a way that you could also skip the WaitTime by pressing any key if the player doesn't want to read the text as part of my intro and jump into the game. I have been thinking about using a couple of screens with text in (with the intro story) and after each WaitTime command, the game would jump to the next coordinates for the next part of the intro text. This part works fine but I just can't work out how to skip this if a player desires. Hopefully this makes sense. I'm probably using the wrong command but thought I'd ask.

Thank you for all your help in the past. It's been fantastic being able to create a dizzy game as a long time fan of the games and fan games. 

👍 0
#93127

I don't think you can skip the WaitTime command. It's been a while since I've looked at DizzyAGE but I think something like this will work. Use this instead of WaitTime();

count = 0;
label:
if(GameGet(G_SKIPINTRO)==0 && count<100)
{
WaitFrames(3);
count++;
goto label;
}

GameSet(G_SKIPINTRO,0);
Continue with the game;

Then put this into the appropriate UpdateRoom function:

if(GetKey(KEY_ACTION))
{
GameSet(G_SKIPINTRO,1);
ClearKeys();
}

Hope this helps you out :smile:  

 

👍 1
#93128

Thank you very much, that's a great way of doing. I'll give this a go and let you know. Thanks for the reply. Very much appreciated. :tup:  

👍 1
#93129

Check out my game 'Dora to the rescue' as it has a complete intro that can be skipped. the password to unpack the .pak file is 37k41s

if you want to play the game in dev mode you'll have to amend the def and menu files by using '//' on the #def GAMEINI line in the def file, and the dev mode check at the almost start of the menu file ...and amend the dev mode line to 1 in the  configuration settings file named 'dizzy'.

Hope this is useful, although Simon's response is cleverer (if that's a real word :no: ). 

 

 

👍 0
#93145

@grandad thank you very much! Really appreciate your reply. I've managed to get this working now with these posts.

:tup:

👍 1