is it possible for smthn like this without variables?
CUSTOM BLOCK
{
----repeat (50)
----{
--------change (var) by (1)
--------move (var) steps
----}
}
is it possible for smthn like this without variables?
CUSTOM BLOCK
{
----repeat (50)
----{
--------change (var) by (1)
--------move (var) steps
----}
}
If you mean without a global var then you can do this
move(50*51/2) steps
no trying to stuff up time complexity by unnesscary loops
I'm thinking the OP really is going to put a TURN in that loop.
I'm guessing you come to us from Scratch. A useful block we've added to the Control category is FOR:
It takes care of the CHANGE BY 1 business.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.