Page 1 of 1

Make your games more interesting

PostPosted: Fri Feb 23, 2007 10:50 pm
by Lyberodoggy
Here is a way to make puzzles that must be solved within a time limit:

Write in the advanced tab of the frame properties
___________________________________
DO
A=A+1
LOOP WHILE A<1001
___________________________________
The code above will keep the vbs engine busy for a while. You can replace 1001 with any number you want. After the delay code, write any code you want, for example make the puzzle end unsolved.

hope I helped...

PostPosted: Sat Feb 24, 2007 3:10 pm
by ShadowHunter
Hi,

Nice of you to post a tutorial :D

However I advice never to use a "Loop" and if you want implement a loop always use a "Do Events" in between otherwhise you end up using lots of resources. Loop is a dangerous function in VB 8)

I recon a recommanded way to do this is by using a timed-event.

Kind regards,

ShAdOwHuNtEr