How would you improve on the next version of scratch?
post anything appropriate.
Offline
i would make a block that said:
IF<logical_test A>
function 1
UNLESS<logical_test B>
function 2
(end)
Example:
IF<(pick random(1)to(10))=(5)
switch to costume [1]
UNLESS<<(mouse x)=(x position)>or<((mouse x)-(x position))=2>
switch to costume [2]
Which means:
if a random number from one to ten is 5, then change costume to 1, unless the mouse x =the x position of this sprite, or the mouse x-the x position of this sprite=2
NOTE: you cannot do this with the blocks in scratch 1.2.1
Last edited by aroundmarch8 (2008-04-01 17:04:36)
Offline
aroundmarch8 wrote:
i would make a block that said:
IF<logical_test A>
function 1
UNLESS<logical_test B>
function 2
(end)
Example:
IF<(pick random(1)to(10)) 5)
switch to costume [1]
UNLESS<<(mouse x) x position)>or<((mouse x)-(x position))=2>
switch to costume [2]
Which means:
if a random number from one to ten is 5, then change costume to 1, unless the mouse x =the x position of this sprite, or the mouse x-the x position of this sprite=2
NOTE: you cannot do this with the blocks in scratch 1.2.1
I believe the equivilent statement in Scratch 1.2.1 can be handled with a couple of nested IF statements as follows:
If <logical_test A>
If <logic_test B>
function 2
else
function 1
Last edited by Paddle2See (2008-04-02 04:52:15)
Offline
thebing wrote:
I would add a "Preview in Browser" function, to see how it plays in the web browser before you share.
That's a REALLY good idea.
Offline
hmnwilson wrote:
thebing wrote:
I would add a "Preview in Browser" function, to see how it plays in the web browser before you share.
That's a REALLY good idea.
I agree
Offline
Offline
horselover wrote:
hmnwilson wrote:
thebing wrote:
I would add a "Preview in Browser" function, to see how it plays in the web browser before you share.
That's a REALLY good idea.
I agree
I agree
Offline