can you upload projects using these to the website and have other people view the projects normally without having to have these modifications?
Offline
me450 wrote:
johnnydean1 wrote:
me450 wrote:
werent they for Panther thoughPanther to Scratch is easy to covert. I'm not explaining it but im sure LS97 or Sparks would!
all of them work except for <file exists?>
Thats as it uses Panther only functions.
Offline
subzerostig wrote:
360mta wrote:
Can you make a block that basically says:
"when sprite# is clicked" but is a boolean(diamond)?
-------
So far I got the code for blockspecsCode:
('when %m clicked' #b)...but I can;t figure the method or which opps it belongs to.
I can't help with the code, as I am not an expert in coding.
However your block code is wrong
Replaceit with this:Code:
('%m clicked?' #b #othersprite:)Only problem is that it has a checkbox next to it and you can select the mousepointer.
But I don't know why or how to stop that
Thanks...this problem has been bothering me for a while.
The problem being that one Sprite can't directly control another...but thanks for the code and the suggestion LS97.
I usually program in C++ and have a lot more elbow room...
Offline
LS97 wrote:
Aidan wrote:
I have another problem. How do I 'save' the changes?
that's something i didnt include in my tutorial, thanks for reminding me!
Shift-click the R again, and click 'save image for end-user'. then click yes.
It wouldn't work for me.
Offline
I am trying to make a [Draw square] block. Here my current code:
drawSquare self putPenUp. self referencePosition: -100 @ 100. self penDown. self referencePosition: 100 @ 100. self referencePosition: 100 @ -100. self referencePosition: -100 @ -100. self referencePosition: -100 @ 100. self putPenUp
This code doesn't seem to work. Maybe try and stretch it's activation out a little?
Offline
me450 wrote:
[Tutorial - Compile to exe with custom blocks]
1. Download latest BYOB
2. go to BYOB folder
3. Look for BYOB Development.BAT
4. change shortcut to open that file
5. open BYOB via shortcut of batch file
6. Shift click edit
7. turn fill screen off
8. add all your custom blocks and use BYOBS compiler to compile your projects
can not find BYOB Development.BAT
Offline
pen13 wrote:
me450 wrote:
[Tutorial - Compile to exe with custom blocks]
1. Download latest BYOB
2. go to BYOB folder
3. Look for BYOB Development.BAT
4. change shortcut to open that file
5. open BYOB via shortcut of batch file
6. Shift click edit
7. turn fill screen off
8. add all your custom blocks and use BYOBS compiler to compile your projectscan not find BYOB Development.BAT
in C:/BYOB ?
Offline
zorket wrote:
I am trying to make a [Draw square] block. Here my current code:
Code:
drawSquare self putPenUp. self referencePosition: -100 @ 100. self penDown. self referencePosition: 100 @ 100. self referencePosition: 100 @ -100. self referencePosition: -100 @ -100. self referencePosition: -100 @ 100. self putPenUpThis code doesn't seem to work. Maybe try and stretch it's activation out a little?
Yeah, I tried to do this to draw a rectangle. I used variables (a.k.a. t1, t2, t3, t4)
But it doesn't work
Offline
me450 wrote:
pen13 wrote:
me450 wrote:
[Tutorial - Compile to exe with custom blocks]
1. Download latest BYOB
2. go to BYOB folder
3. Look for BYOB Development.BAT
4. change shortcut to open that file
5. open BYOB via shortcut of batch file
6. Shift click edit
7. turn fill screen off
8. add all your custom blocks and use BYOBS compiler to compile your projectscan not find BYOB Development.BAT
in C:/BYOB ?
what is C cdrive
Last edited by pen13 (2010-12-02 16:34:49)
Offline
me450 wrote:
pen13 wrote:
me450 wrote:
[Tutorial - Compile to exe with custom blocks]
1. Download latest BYOB
2. go to BYOB folder
3. Look for BYOB Development.BAT
4. change shortcut to open that file
5. open BYOB via shortcut of batch file
6. Shift click edit
7. turn fill screen off
8. add all your custom blocks and use BYOBS compiler to compile your projectscan not find BYOB Development.BAT
in C:/BYOB ?
now i know here cdrive is but i still cornt find byob in cdrive
Last edited by pen13 (2010-12-02 16:35:33)
Offline
How about this block:
EDIT: It's an IP address block.
showNetworkAddressBlock | t1 t2 t3 | Socket initializeNetwork. t1 _ NetNameResolver localHostAddress. t2 _ nil. t3 _ NetNameResolver stringFromAddress: t1. (t2 notNil and: [t2 ~= t1]) ifTrue: [t3 _ t3 , String cr , 'Internet: ' , (NetNameResolver stringFromAddress: t2)]. ^ t3
BlockSpec:
('Ip adress' #r #showNetworkAddressBlock)
Last edited by gbear605 (2010-12-02 20:21:37)
Offline
bbbeb wrote:
me450 wrote:
pen13 wrote:
what is C cdriveYes
Not so appropriate 1337th post.
lol
Offline
RocksAndFire wrote:
bbbeb wrote:
me450 wrote:
YesNot so appropriate 1337th post.
lol
^ spam!
Anyways, i need a <if touching sprite,bounce> block.
Offline
kinker wrote:
RocksAndFire wrote:
bbbeb wrote:
Not so appropriate 1337th post.
lol
^ spam!
Anyways, i need a <if touching sprite,bounce> block.
im working on it
EDIT
just use my block
bounce self rotationDegrees: rotationDegrees + 180
('bounce' #- #bounce)
and use it in a if block with a <touching []?> block
so [if?<touching []?>]
[][Bounce]
[ ]
Last edited by me450 (2010-12-04 03:36:20)
Offline
me450 wrote:
kinker wrote:
RocksAndFire wrote:
lol^ spam!
Anyways, i need a <if touching sprite,bounce> block.im working on it
EDIT
just use my blockCode:
bounce self rotationDegrees: rotationDegrees + 180Code:
('bounce' #- #bounce)and use it in a if block with a <touching []?> block
so [if?<touching []?>]
[][Bounce]
[ ]
not the most efficient bouncing method. but it will do for now while i make a good one for bingo 1.4
Offline
LS97 wrote:
Aidan wrote:
I have another problem. How do I 'save' the changes?
that's something i didnt include in my tutorial, thanks for reminding me!
Shift-click the R again, and click 'save image for end-user'. then click yes.
but then it says "changes have not been saved. it is ok to cancel those changes?"
Offline
You can get sprite-specific blocks (Motion, Looks, etc.) by instead of clicking ScriptableScratchMorph, click ScriptableSpriteMorph, then class, then blockSpecs, then BlockSpecs again. You now can access motion and looks blocks. Hope this helps.
Offline
scimonster wrote:
have you made any custom blocks in scratch?
have you made projects with them?
are you annoyed that you are the only one who can run them?
do you wish you could share those projects?
now you can!
put a link to the project here, along with the blockspecs and coding for the blocks
isn't it great that you can do something with these?
Offline
drawSquare self putPenUp. self referencePosition: -100 @ 100. self penDown. self referencePosition: 100 @ 100. self referencePosition: 100 @ -100. self referencePosition: -100 @ -100. self referencePosition: -100 @ 100. self putPenUp
Needs to be fixed to make [draw square].
Offline
can someone make the method for this. blockspecs:
('%Y list %L' #- #orderList)
with %Y being a new dropdown menu:
$Y = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #listOrdering; choice: 'alphabetize'].
and the choices:
listOrdering ^ #('alphabetize' 'reverse' 'shuffle' )
all i need is it to work. it does the dropdown menu for alphabetize, the list menu, just not doing anything when clicked.
EDIT: i'm trying this code:
orderList: t1 list: t2 | t3 | t3 _ t1 t3 = 'alphabetize' ifTrue: [t2 alphabeticalMorphMenu]. t3 = 'reverse' ifTrue: [t2 reversed]. t3 = 'shuffle' ifTrue: [t2 shuffled]. ^ 'Error!'
its not coming out quite right...
Last edited by scimonster (2010-12-08 11:03:47)
Offline
i am now trying to make a ((color^) effect of (sprite1^))[/blocks] reporter.
i put in the line of code
$A = t2 ifTrue: [^ ChoiceArgMorph new choice: 'color'; menuSelector: #attributeEffectNames].
match it with
attributeEffectNames ^ #('color' 'fisheye' 'whirl' 'pixelate' 'mosaic' 'brightness' 'ghost') collect: [:t1 | t1]
i have the blockspecs as
('%A effect of %m' #r #getAttributeEffect:)
and the method as
getAttributeEffect: t1 | t2 | (vars includesKey: t1) ifTrue: [^ vars at: t1]. t2 _ t1 localized. 'blur' = t2 ifTrue: [^ self blur]. 'brightness' localized = t2 ifTrue: [^ self brightnessShift]. 'fisheye' localized = t2 ifTrue: [^ self fisheye]. 'color' localized = t2 ifTrue: [^ self hueShift]. 'colour' localized = t2 ifTrue: [^ self hueShift]. 'mosaic' localized = t2 ifTrue: [^ self mosaicCount]. 'pixelate' localized = t2 ifTrue: [^ self pixelateCount]. 'pointillize' localized = t2 ifTrue: [^ self pointillizeSize]. 'saturation' localized = t2 ifTrue: [^ self saturationShift]. 'transparency' localized = t2 | ('ghost' localized = t2) ifTrue: [^ self transparency]. 'whirl' localized = t2 ifTrue: [^ self whirl]
i copied that from the regular attributes and the color effect reporter that i found here. when i click on sensing, it comes up with an error message:
Message not understood: menuSelector:
what should i do!?!?! HELP!
Last edited by scimonster (2010-12-08 10:56:41)
Offline