Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / pause till

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 17th Feb 2005 00:21
how can i make so that nothing happens till you click somewhere. i am making an eneter menu and have sorted out the clicking part. but how can you make so that nothing happens till then ????
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 17th Feb 2005 06:11
Try moving all variables and movement code relating to the menu between an "if" statement and an "endif".

Iwata: "YOU'RE NOT HIM! YOU'RE NOT SUMIYOSHI! EEEEYAAAAAA!"
Sumiyoshi: "Who am I then?
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 17th Feb 2005 06:33
Can you please try to keep all of your questions in one thread instead of creating almost multiple ones in a row?

It has been said that the body is a slave to the mind. Only the mind knows no freedom.
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 17th Feb 2005 06:36
Who did that, !hi! ?

Iwata: "YOU'RE NOT HIM! YOU'RE NOT SUMIYOSHI! EEEEYAAAAAA!"
Sumiyoshi: "Who am I then?
Neofish
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Feb 2005 06:42
you could do something like set the pause var to 1. then if it is one run a function that checks to see if it is one and waits for 1/10 milliseconds. Ensure that the wait function runs before anything and you rest the pause var first

dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 17th Feb 2005 06:45
Yes !hi!.

It has been said that the body is a slave to the mind. Only the mind knows no freedom.
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 17th Feb 2005 16:47
i have sauted out the menu by

[b][i]
repeat
code for my menu
until false
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 19th Feb 2005 04:02
Right, what else do you need to know?

Iwata: "YOU'RE NOT HIM! YOU'RE NOT SUMIYOSHI! EEEEYAAAAAA!"
Sumiyoshi: "Who am I then?
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Feb 2005 05:06
errrrrrrr
go to my orther therads
internet games http://forum.thegamecreators.com/?m=forum_view&t=48619&b=10 really need help
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 19th Feb 2005 05:15
Well, I meant is there anything else you need to know about the menu.
I know nowt about internet coding, sorry.

Iwata: "YOU'RE NOT HIM! YOU'RE NOT SUMIYOSHI! EEEEYAAAAAA!"
Sumiyoshi: "Who am I then?
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Feb 2005 18:54
owelll thanks
Frozen Flame
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location:
Posted: 20th Feb 2005 00:22
try something like..

'Put this in main loop
If keystate(25)=1 then gosub PAUSE

'Put this at bottom of code
PAUSE:
wait key
return
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Feb 2005 03:31
thanks it WORKS now i can pause my game

Login to post a reply

Server time is: 2025-05-25 01:36:53
Your offset time is: 2025-05-25 01:36:53