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.

Newcomers DBPro Corner / Need help fast please

Author
Message
Steel
18
Years of Service
User Offline
Joined: 7th Apr 2006
Location:
Posted: 19th May 2006 20:03
I used the
MyTime = Timer()
function how do I reset MyTime to 0
Steel
18
Years of Service
User Offline
Joined: 7th Apr 2006
Location:
Posted: 19th May 2006 20:21
This is DBP and I am trying to create a screensaver function. Making it switch from one picture to next and when I press a button to reset the variable equation that gives you the timer functionality to zero.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2006 20:39
You can't - the timer cannot be reset.

...

But you can simulate it:



For free Plug-ins and source code http://www.matrix1.demon.co.uk
Steel
18
Years of Service
User Offline
Joined: 7th Apr 2006
Location:
Posted: 19th May 2006 21:01
Can someone tell me what I did wrong
Renegade Andy
19
Years of Service
User Offline
Joined: 16th Oct 2004
Location: Scotland
Posted: 25th May 2006 03:13
Why do you need a timer for that , if its when you push a button!

NO KEYBOARD DETECED - PRESS F11 TO CONTINUE - FOOKED BIOS
Zeddex
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 25th May 2006 19:13
you can do something like this, : maybe some code error bcose i don t ahve my compiler at work

time = timer()
load image "image", 1
load image "image", 2
sprite 1, 1
sprite 2, 2
x = 1

do
rem after 60 sec
if time >= time + 60000

if x < 2
paste image x
inc x
time = timer()
else
x = 1
endif
endif

loop

If Zeddex can, you can. If you have an idea, make it.
Zeddex
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 25th May 2006 19:14
paste image change by show sprite x

If Zeddex can, you can. If you have an idea, make it.

Login to post a reply

Server time is: 2024-09-24 23:25:12
Your offset time is: 2024-09-24 23:25:12