I'm making an OS, and I want to know who I can create a script that never stops working but doesn't generate infinite results.
Ex:
(forever)
(If <mouse down?>)
(Do whatever)
(end if)
(end forever)
And I only want it to ALWAYS respond, not do what I want it to do when it responds forever.
Some help please? :/
Last edited by JeanTheFox (2010-10-27 17:04:38)
Offline
Or you could do <forever><if> <{ }> <( <=> )> 1 << <and> >> <mouse down?>
Last edited by recycle49 (2010-10-27 17:54:16)
Offline
Could you guys explain a bit more?
And laser100, I already do have a repeat until block.
Offline
I think you mean something like this:
Forever
If (mouse down?)
If (check=0)
do this thing you wanted it to do
set check to 1
end if
Else
set check to 0
end if
end forever
I think that should work.
Last edited by AtomicBawm3 (2010-10-27 22:21:37)
Offline
Or you can add a wait until mouse down? block.
Offline
you can make a variable called click or something, set it to zero in the begginning, and set it to one after you clicked. pluse make it:
if clicked=0
if mouse down and touching___
do_______
set clicked to 1
see! it will stop working, and go back on if you set "clicked" to 0!
Offline
chipguy wrote:
you can make a variable called click or something, set it to zero in the begginning, and set it to one after you clicked. pluse make it:
if clicked=0
if mouse down and touching___
do_______
set clicked to 1
see! it will stop working, and go back on if you set "clicked" to 0!
woops! didn't see atomicbawm3's idea! didn't mean to look like i copied!
Offline