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

#851 2010-08-05 12:14:16

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

Re: Cool custom blocks in Scratch

LS97 wrote:

Harakou wrote:

Cool tutorial! Do you know where I can find commands to use in my blocks?

im not sure what you mean by that.
if you are looking for a good Squeak tutorial, maybe this one can help. otherwise, try to explain yourself better.

Never mind.

http://t3.gstatic.com/images?q=tbn:ANd9GcQyiN8zF-WH_p7EabgvPWy_qajqUu3HjNcSsplqfdzn02YMUtc&t=1&usg=__hxlaJSpbBEdU5OgGIUSyc6MNVHE=

Last edited by Harakou (2010-08-09 00:10:14)


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

Offline

 

#852 2010-08-05 13:16:38

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

Harakou wrote:

LS97 wrote:

Harakou wrote:

Cool tutorial! Do you know where I can find commands to use in my blocks?

im not sure what you mean by that.
if you are looking for a good Squeak tutorial, maybe this one can help. otherwise, try to explain yourself better.

Never mind. I should just pacepalm myself.

http://t3.gstatic.com/images?q=tbn:ANd9 … Syc6MNVHE=

hmm

Offline

 

#853 2010-08-05 14:48:56

mooster
Scratcher
Registered: 2008-11-27
Posts: 1000+

Re: Cool custom blocks in Scratch

mooster wrote:

Is there a way to make a clone block for like an RTS game like saying [clone sprite] and [delete all ____ clones]

Can some one make me this block or tell me how to

Offline

 

#854 2010-08-06 04:34:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

mooster wrote:

mooster wrote:

Is there a way to make a clone block for like an RTS game like saying [clone sprite] and [delete all ____ clones]

Can some one make me this block or tell me how to

try panther that should suit your needs

Offline

 

#855 2010-08-07 14:55:04

dbn300100
Scratcher
Registered: 2010-01-10
Posts: 36

Re: Cool custom blocks in Scratch

LS97 wrote:

dbn300100 wrote:

can somebody tell me how to make an internet block

it depends what kind you want.
Bingo has a vast range of internet blocks, try downloading bingo 1.2.0 at http://bingoprogramming.weebly.com/download.html

a scratch one


This Is Dbn!!!!!!!!!!!!!!!!

Offline

 

#856 2010-08-07 15:00:18

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

take the blocks from bingo 1.0.0 then. it includes te source code

Offline

 

#857 2010-08-07 15:40:15

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

mooster wrote:

mooster wrote:

Is there a way to make a clone block for like an RTS game like saying [clone sprite] and [delete all ____ clones]

Can some one make me this block or tell me how to

try panther that should suit your needs

I don't think panter can do that... unless you have a broadcast which when recived make the sprite delete its self.
e.g.
http://a.imageshack.us/img651/8152/clonespritesdeleteall.gif
(That script was just me putting random stuff into a script, it works though.)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#858 2010-08-07 19:41:42

mooster
Scratcher
Registered: 2008-11-27
Posts: 1000+

Re: Cool custom blocks in Scratch

markyparky56 wrote:

LS97 wrote:

mooster wrote:


Can some one make me this block or tell me how to

try panther that should suit your needs

I don't think panter can do that... unless you have a broadcast which when recived make the sprite delete its self.
e.g.
http://a.imageshack.us/img651/8152/clon … eteall.gif
(That script was just me putting random stuff into a script, it works though.)

OK but show me how to make those blocks

Offline

 

#859 2010-08-08 05:09:03

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

mooster wrote:

markyparky56 wrote:

LS97 wrote:


try panther that should suit your needs

I don't think panter can do that... unless you have a broadcast which when recived make the sprite delete its self.
e.g.
http://a.imageshack.us/img651/8152/clon … eteall.gif
(That script was just me putting random stuff into a script, it works though.)

OK but show me how to make those blocks

take them from pnather!!!

Offline

 

#860 2010-08-08 06:40:05

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

Just got Bingo 1.2.0 ...
Grrr... ...I was working on that cursor block too...
Hey, thanks LS97, I'm on the credits list!...
Grrr... ...don't know dev password...
Run smalltalk: interesting...
hey! no hacking!... LS97!!!!!!!!!
That works... YAY! Into source!


/* No comment */

Offline

 

#861 2010-08-08 06:55:23

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

That, LS97, is the most random, amusing password I have ever seen.


/* No comment */

Offline

 

#862 2010-08-08 07:04:33

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

who says that's the password?
it's not.

Offline

 

#863 2010-08-08 07:05:53

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

By the way, impressed at the blocking of the mesh exploit to hack in to source.


/* No comment */

Offline

 

#864 2010-08-08 07:08:09

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Offline

 

#865 2010-08-08 08:02:32

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

who says that's the password?
it's not.

It ends with r.

Last edited by TheSuccessor (2010-08-08 08:03:06)


/* No comment */

Offline

 

#866 2010-08-08 08:03:52

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

WOT! so you know it? tell me letter 2.

Offline

 

#867 2010-08-08 08:14:01

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

WOT! so you know it? tell me letter 2.

Letter 2 of your password is l


/* No comment */

Offline

 

#868 2010-08-08 09:11:23

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

lol. like it? i thought it would be pretty hard to guess. (now forget it  tongue )

Offline

 

#869 2010-08-08 09:20:43

dbn300100
Scratcher
Registered: 2010-01-10
Posts: 36

Re: Cool custom blocks in Scratch

LS97 wrote:

take the blocks from bingo 1.0.0 then. it includes te source code

i dont know about that bingo thing
is it the game bingo or something else


This Is Dbn!!!!!!!!!!!!!!!!

Offline

 

#870 2010-08-08 09:25:12

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

dbn300100 wrote:

LS97 wrote:

take the blocks from bingo 1.0.0 then. it includes te source code

i dont know about that bingo thing
is it the game bingo or something else

it's a program like scratch by me. in my signature

Offline

 

#871 2010-08-08 09:42:31

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Cool custom blocks in Scratch

@LS97

In Bingo in the Dev mode
version
is spelt wrong!


You can now reach me on Twitter @johnnydean1_

Offline

 

#872 2010-08-08 09:45:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Cool custom blocks in Scratch

Oh and in Bingo when you use broadcast and wait the last broadcast block doesnt work!


You can now reach me on Twitter @johnnydean1_

Offline

 

#873 2010-08-08 14:18:05

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

@both posts
1. doesnt matter
2. it should, i made it to do so  hmm

Offline

 

#874 2010-08-08 20:28:01

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

The http://www.freeimagehosting.net/uploads/db8cb97ba8.gifblock
Another request of SeptimusHeap.
Put this code in both Sprite and Stage Morph blockSpecs in the sensing category:

Code:

 ('%s mouse down?' #b #mousePressed: 'left')

then into the instance, into ScriptableScratchMorph, and into 'sensing ops'.
replace the 'mousePressed' code with the one below.

Code:

mousePressed: t1 
    t1 = 'left' ifTrue: [^ Sensor redButtonPressed].
    t1 = 'right' ifTrue: [^ Sensor yellowButtonPressed].
    t1 = 'middle' ifTrue: [^ Sensor blueButtonPressed].
    t1 = 'any' ifTrue: [^ Sensor anyButtonPressed].
    t1 = 'left ' ifTrue: [^ Sensor redButtonPressed].
    t1 = 'right ' ifTrue: [^ Sensor yellowButtonPressed].
    t1 = 'middle ' ifTrue: [^ Sensor blueButtonPressed].
    t1 = 'any ' ifTrue: [^ Sensor anyButtonPressed].
    ^ Sensor redButtonPressed

Then click accept and it should be fine. you'll find the new block in the sensing category. you can put left, right, middle or any into the box and it'll give you the respective sensor button boolean.

IMPROVEMENTS FOR THIS BLOCK

go to: scratch-blocks, CommandBlockMorph, private, uncoloredArgMorphFor:
now add the following code;

Code:

$z = code ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #whichMouse].

then go to
scratch-objects, scriptableScratchMorph, sensing ops
create the following

Code:

whichMouse
^ #('left' 'right' 'middle' 'any')

then go to
scratch-objects, scratchSpriteMorph, block specs, blockSpecs and replace

Code:

('%s mouse down?' #b #mousePressed: 'left')

with

Code:

('%z mouse down?' #b #mousePressed: 'left')

(basically replace the s with a z)

this will give it a drop down menu  big_smile

btw thanks for the time block, i tried the improvements that you gave me, but instead of putting ('get %t' r getDate: 'time') i noticed that i had to put ('get %t' r getTime: 'time')

Last edited by PlayWithFire (2010-08-08 20:29:35)


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#875 2010-08-09 00:13:11

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

Re: Cool custom blocks in Scratch

I'm trying to find the BlockSpecs for control blocks. Do they exist?


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

Offline

 

Board footer