This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-20 12:46:57

padowandan
Scratcher
Registered: 2008-08-21
Posts: 11

How about a power block?

I would like a mathamatical block for powers. I know that it can already be achieved like this:

[blocks] <set{ Old number you are powering }to( <{ The number you are powering }>
<repeat( (( <{ The power   }> <-> 1 ))
<set{ The number you are powering    }to( (( <{ The number you are powering    }> <*> <{ Old number you are powering    }> ))
<end>

[/blocks]

It might not seem like much but there is
[blocks]
<forever if>
<end>
[/blocks]

for simply these blocks

[blocks]

<forever>
<if>
<end>
<end>

[/blocks]

So I think that is a good idea.  smile

Last edited by padowandan (2010-10-22 13:04:51)


Please visit my projects!  smile   big_smile
Also, look at my website!

Offline

 

#2 2010-10-20 15:18:50

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: How about a power block?

that would be awesome  smile

Offline

 

#3 2010-10-21 12:41:52

padowandan
Scratcher
Registered: 2008-08-21
Posts: 11

Re: How about a power block?

cruelty247 wrote:

that would be awesome  smile

Thanks  big_smile
[blocks]
<( <{ you are    }> <=> very nice )>


Please visit my projects!  smile   big_smile
Also, look at my website!

Offline

 

#4 2010-10-21 21:01:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How about a power block?

Yes, exponents would be a much appreciated addition to Scratch.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2010-10-22 13:08:11

padowandan
Scratcher
Registered: 2008-08-21
Posts: 11

Re: How about a power block?

Harakou wrote:

Yes, exponents would be a much appreciated addition to Scratch.

Thanks
I think the block would look like this(in the forums)

   ((  <^>    ))

and have a text code of:

( (  <^>  ) )

(just without the spaces between the brackets)

Last edited by padowandan (2010-10-22 13:21:25)


Please visit my projects!  smile   big_smile
Also, look at my website!

Offline

 

Board footer