Pages: 1 2
Topic closed
Mayhem, in most programming languages, mod does only work on integers, so the result is an integer, but scratch does the right thing, defining x mod y as
x - y*floor(x/y)
Offline
What happens if you put all programs for each object wich are in a forever block, into just one? will that optimize the project?? for example:
[blocks]<when green flag clicked>
<forever>
<play sound[
<if><mouse down?>
<pen down>
<end>
<end>[/blocks]
instead of:
[blocks]
<when green flag clicked>
<forever>
<play sound[
<end>
<when green flag clicked>
<forever>
<if><mouse down?>
<pen down>
<end>
<end>
[/blocks]
Last edited by Dudeson (2009-05-22 14:34:09)
Offline
Dudeson, yes, those scripts will have the same effect...
Coolstuff: no, only
[blocks]<play sound[ whatever ]and wait>[/blocks] will delay the script,
while
[blocks]<play sound[ whatever ] >[/blocks] will not.
Offline
MyRedNeptune wrote:
Dudeson, yes, those scripts will have the same effect...
Coolstuff: no, only
[blocks]<play sound[ whatever ]and wait>[/blocks] will delay the script,
while
[blocks]<play sound[ whatever ] >[/blocks] will not.
thx for the help!
Offline
Topic closed
Pages: 1 2