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

#3026 2012-07-19 13:34:32

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: ITopic: Welcome to your local block library!

I really need a block like this:

when [Options v] clicked
broadcast [Options v]
wait until <(I receive [Screen v])>

Last edited by gooeygoo (2012-07-19 13:37:56)


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#3027 2012-07-19 15:11:40

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

gooeygoo wrote:

Greenatic wrote:

gooeygoo wrote:

When gf clicked
go to [1:16] of sound [1]
Wait until <(sound)=[6:21]>
Go to [1:16] of sound [1]
The sound one is allowed you to go to the section of the song, and you don't need to wait!

Oh, you mean a block like this?

play from (60) seconds into [song  v]
So it starts a certain number of seconds into the song, and continues playing?  I can make that easily if that's what you want, but not tonight.  Maybe tomorrow.   smile

Thanks! That works, but If it was this, it would go directly to that part of the song

when gf clicked
Forever
play ( ) of song [Larries Lement v]
Wait until <<sound> = [6:21]>
go back to ( ) of song [Larries Lement v]

So you want, basically, a "rewind to ( ) of [sound  v]" block?

As for the other one, we have a <[broadcast  v] received?> block.   smile

Last edited by Greenatic (2012-07-19 15:13:15)

Offline

 

#3028 2012-07-19 15:20:54

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: ITopic: Welcome to your local block library!

Yes.
And can you see my post above? it's suppost to be a broadcast signal so you can way for it  wink


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#3029 2012-07-19 15:41:16

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

gooeygoo wrote:

Yes.
And can you see my post above? it's suppost to be a broadcast signal so you can way for it  wink

Yeah, so wouldn't this block work?  We already have it.

wait until <[broadcast  v] received?>
And for the rewind block, would it start playing from there?

Last edited by Greenatic (2012-07-19 15:42:24)

Offline

 

#3030 2012-07-19 18:08:49

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: ITopic: Welcome to your local block library!

Yes
It would be like going from 0:00 to 0:16.


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#3031 2012-07-19 19:04:27

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

gooeygoo wrote:

Yes
It would be like going from 0:00 to 0:16.

('play %S from %n seconds' #- #Play:From:)

Play: t1 From: t2
| t3 |
t3 _ self soundNamed: t1 ifAbsent:[^ self].
t3 playFrom: t2.

Offline

 

#3032 2012-07-20 10:33:41

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: ITopic: Welcome to your local block library!

Where do i put the code?


Scratch 2.0 Beta Tester  wink

Offline

 

#3033 2012-07-20 16:37:41

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pitusky12 wrote:

Where do i put the code?

How much do you know about modding Scratch?

Offline

 

#3034 2012-07-22 19:32:52

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Pitusky12 wrote:

Where do i put the code?

How much do you know about modding Scratch?

I know a lot ,but i dont remember where to put the code.


Scratch 2.0 Beta Tester  wink

Offline

 

#3035 2012-07-22 19:49:37

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Category is operators.
Rounding functions - floor and ceiling
Floor reports the number rounded down automatically. e.g. 6.9 = 6 but 6.1 still = 6.
Ceiling reports the number rounded up automatically. e.g. 6.1 = 7 but 6.9 still = 7.

Code:

('floor of %n' #r #floorOf: 6.9)

Code:

floorOf: t1 
    ^ (t1 - 0.5) rounded

Code:

('ceiling of %n' #r #ceilingOf: 6.1)

Code:

ceilingOf: t1 
    ^ (t1 + 0.5) rounded

Last edited by chanmanpartyman (2012-07-22 19:50:20)

Offline

 

#3036 2012-07-22 19:53:20

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Category is controls
clone at x:y:

Code:

('clone at x:%n y:%n' #- #cloneAtX:y: #- #-)

Code:

cloneAtX: t1 y: t2 
    | t3 t4 |
    t3 _ self referencePosition x.
    t4 _ self referencePosition y.
    self referencePosition: t1 @ t2.
    self duplicateNoAttach.
    self referencePosition: t3 @ t4

Offline

 

#3037 2012-07-23 13:09:53

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pitusky12 wrote:

Greenatic wrote:

Pitusky12 wrote:

Where do i put the code?

How much do you know about modding Scratch?

I know a lot ,but i dont remember where to put the code.

Blockspecs:

Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > class > block specs > blockSpecs

Methods:
Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > any category

Offline

 

#3038 2012-07-27 04:53:47

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

Were do you put the code for the


open [lallaway12]s My stuff page


http://i49.tinypic.com/2re4ied.png

Offline

 

#3039 2012-07-27 05:28:40

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

Please can you add were the code needs to go becuse it is hard remebering were all the code needs to be


http://i49.tinypic.com/2re4ied.png

Offline

 

#3040 2012-07-27 13:04:53

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

lallaway12 wrote:

Please can you add were the code needs to go becuse it is hard remebering were all the code needs to be

I just posted it  tongue

Greenatic wrote:

Pitusky12 wrote:

Greenatic wrote:


How much do you know about modding Scratch?

I know a lot ,but i dont remember where to put the code.

Blockspecs:

Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > class > block specs > blockSpecs

Methods:
Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > any category

Offline

 

#3041 2012-07-27 15:18:24

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

lallaway12 wrote:

Please can you add were the code needs to go becuse it is hard remebering were all the code needs to be

I just posted it  tongue

Greenatic wrote:

Pitusky12 wrote:


I know a lot ,but i dont remember where to put the code.

Blockspecs:

Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > class > block specs > blockSpecs

Methods:
Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > any category

No for the blocks! *facepalm*


http://i49.tinypic.com/2re4ied.png

Offline

 

#3042 2012-07-27 15:26:02

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

lallaway12 wrote:

Greenatic wrote:

lallaway12 wrote:

Please can you add were the code needs to go becuse it is hard remebering were all the code needs to be

I just posted it  tongue

Greenatic wrote:


Blockspecs:

Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > class > block specs > blockSpecs

Methods:
Scratch-Objects > ScriptableScratchMorph/ScratchSpriteMorph/ScratchStageMorph > any category

No for the blocks! *facepalm*

Yes for the blocks.   tongue

A blockspec is the code that determines the appearance of a block.  It looks like this:
('example block' #- #exampleBlock)

The method is the other code that determines what the block will do.   smile

Offline

 

#3043 2012-07-28 03:37:00

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

lallaway12 wrote:

Greenatic wrote:

lallaway12 wrote:

Please can you add were the code needs to go becuse it is hard remebering were all the code needs to be

I just posted it  tongue


No for the blocks! *facepalm*

Yes for the blocks.   tongue

A blockspec is the code that determines the appearance of a block.  It looks like this:
('example block' #- #exampleBlock)

The method is the other code that determines what the block will do.   smile

No not the blockspec the code


http://i49.tinypic.com/2re4ied.png

Offline

 

#3044 2012-07-28 09:29:19

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

lallaway12 wrote:

Greenatic wrote:

lallaway12 wrote:


No for the blocks! *facepalm*

Yes for the blocks.   tongue

A blockspec is the code that determines the appearance of a block.  It looks like this:
('example block' #- #exampleBlock)

The method is the other code that determines what the block will do.   smile

No not the blockspec the code

ScriptableScratchMorph instance

Offline

 

#3045 2012-07-28 15:18:45

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

dreamod wrote:

lallaway12 wrote:

Greenatic wrote:


Yes for the blocks.   tongue

A blockspec is the code that determines the appearance of a block.  It looks like this:
('example block' #- #exampleBlock)

The method is the other code that determines what the block will do.   smile

No not the blockspec the code

ScriptableScratchMorph instance

Ok were do you put the code for the

 Open [username]s my stuff page
and the
 open the ( enter id ) th forum page 


http://i49.tinypic.com/2re4ied.png

Offline

 

#3046 2012-07-28 17:27:28

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

lallaway12 wrote:

dreamod wrote:

lallaway12 wrote:


No not the blockspec the code

ScriptableScratchMorph instance

Ok were do you put the code for the

 Open [username]s my stuff page
and the
 open the ( enter id ) th forum page 

ScriptableScratchMorph > instance> > any category

Offline

 

#3047 2012-07-29 04:23:15

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

lallaway12 wrote:

dreamod wrote:


ScriptableScratchMorph instance

Ok were do you put the code for the

 Open [username]s my stuff page
and the
 open the ( enter id ) th forum page 

ScriptableScratchMorph > instance> > any category

Witch catorge? or Just any?


http://i49.tinypic.com/2re4ied.png

Offline

 

#3048 2012-07-29 08:02:24

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

lallaway12 wrote:

Greenatic wrote:

lallaway12 wrote:


Ok were do you put the code for the

 Open [username]s my stuff page
and the
 open the ( enter id ) th forum page 

ScriptableScratchMorph > instance> > any category

Witch catorge? or Just any?

Any category.

Offline

 

#3049 2012-07-29 18:11:14

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

i'm going to use some of these blocks in My Mod!


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#3050 2012-07-30 10:32:52

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

ftf841 wrote:

i'm going to use some of these blocks in My Mod!

Excellent!  Just make sure you give credit.   smile

Offline

 

Board footer