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

#351 2010-05-16 21:23:46

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

Oh, good point.... *deletes post*

BTW I was kidding about suing you....

Last edited by nXIII (2010-05-16 21:24:57)


nXIII

Offline

 

#352 2010-05-16 21:40:42

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

Oh, I got a good block:

In Presentation Mode? (a boolean block)

spec:
('in presentation mode?' #b #inPresentationMode)

code:
no code needed; it's already built in


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#353 2010-05-16 21:50:55

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

The simplest way to do the blocks relating to visibility:

specs:
('hidden?' #b #isHidden)
('showing?' #b #isShowing)
('visible?' #b #isVisible)

code:

Code:

isShowing
^ self isHidden not

I'm so proud, I figured these simple ways out all by mahself  lol   lol


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#354 2010-05-17 02:19:37

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Cool custom blocks in Scratch

can you do hexadecimal/decimal for?


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#355 2010-05-17 10:55:58

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#356 2010-05-17 11:02:51

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

Re: Cool custom blocks in Scratch

randalpik wrote:

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.

*cough* Panther *cough* copier *cough*


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

 

#357 2010-05-17 11:04:04

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

markyparky56 wrote:

randalpik wrote:

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.

*cough* Panther *cough* copier *cough*

Erm. no. I actually found these blocks myself. Just because panther made something doesn't mean that anyone else who made it copied panther.


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#358 2010-05-17 11:09:03

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

Re: Cool custom blocks in Scratch

i agree with randalpik. and i' gonna go on using my version of scratch (and add some blocks :p). panther's nice, but that's not what i live for. (unlike someone i'm not naming). nXIII

Offline

 

#359 2010-05-17 11:25:49

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

Re: Cool custom blocks in Scratch

randalpik wrote:

markyparky56 wrote:

randalpik wrote:

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.

*cough* Panther *cough* copier *cough*

Erm. no. I actually found these blocks myself. Just because panther made something doesn't mean that anyone else who made it copied panther.

Oh sorry. I was just assuming since you stole the recived block out of panther (Against the TOS that you agreed to when downloading)  that you were copying the variable blocks aswell.


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

 

#360 2010-05-17 11:25:52

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

Re: Cool custom blocks in Scratch

wow, had a look at panther. nice job people! (apart from nXIII. i'm getting meaner now).
but there's a lot of things you're missing.
1. no sprite touching sprite boolean
2. no mid/right button pressed boolean
3. no lowercase, uppercase, reversed reporter
4. no 'beep' block
5. who did youget that 'key pressed' block from? it was my idea first...
6. no 'quit scratch' block

other than that, great job!! and nXIII, i'm only joking.

Offline

 

#361 2010-05-17 11:28:28

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

Re: Cool custom blocks in Scratch

LS97 wrote:

wow, had a look at panther. nice job people! (apart from nXIII. i'm getting meaner now).
but there's a lot of things you're missing.
1. no sprite touching sprite boolean
2. no mid/right button pressed boolean
3. no lowercase, uppercase, reversed reporter
4. no 'beep' block
5. who did youget that 'key pressed' block from? it was my idea first...
6. no 'quit scratch' block

other than that, great job!! and nXIII, i'm only joking.

1. I don't think that one ever came up in discussion. I might suggest it.
2. Mid/right button pressed, annother good idea, I think nXIII forgot that, i suggested it once before.
3. Again, nice idea.
4. Why do we need that?
5. I think it wa nXIII's idea...
6. Agan, why would we need that? it would just come up saying, do you want to save?


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

 

#362 2010-05-17 11:39:41

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

Re: Cool custom blocks in Scratch

@markyparky:

1. 2. 3. then give credit to me. (for once i did something good in squeak)
4. just pointing it out
5. well, i also had the same idea then. i was on holdiay in italy and came up with it.
6. one with a dialog only saying 'quit' or 'dont quit'. it'zs very useful when you turn them into EXE files and wnt to have your own method to close.

btw, to hack panther, close a color watcher, click debug, then right-click and 'browse full'. it opens the browser. then edit the frameMorph, menu actions, and add the developer buttons straight away. but do not use panther blocks in your mod ad claim it as your own!

and there's an easier way for it, didnt spot it at first. right click a block and edit it  smile

Last edited by LS97 (2010-05-17 12:14:31)

Offline

 

#363 2010-05-17 11:43:41

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

Re: Cool custom blocks in Scratch

oh, something else about panther:
the startup thing where it says newest sutff, does it connect to the web?

Offline

 

#364 2010-05-17 12:19:43

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

Re: Cool custom blocks in Scratch

OK, i'm taking a break from bingo. too many ppl concentrated in panther; keep 'em busy, panther team!

Offline

 

#365 2010-05-17 12:31:51

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

Re: Cool custom blocks in Scratch

LS97 wrote:

OK, i'm taking a break from bingo. too many ppl concentrated in panther; keep 'em busy, panther team!

We'll be happy to. Hope Bingo turns out well of course.


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

 

#366 2010-05-17 12:36:54

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

Re: Cool custom blocks in Scratch

LS97 wrote:

oh, something else about panther:
the startup thing where it says newest sutff, does it connect to the web?

The news? Yeah.


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

 

#367 2010-05-17 13:22:43

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

Re: Cool custom blocks in Scratch

markyparky56 wrote:

LS97 wrote:

oh, something else about panther:
the startup thing where it says newest sutff, does it connect to the web?

The news? Yeah.

cool! i hope you'll keep updating that bit often  smile

Offline

 

#368 2010-05-17 17:58:44

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

LS97 wrote:

wow, had a look at panther. nice job people! (apart from nXIII. i'm getting meaner now).
but there's a lot of things you're missing.
1. no sprite touching sprite boolean
2. no mid/right button pressed boolean
3. no lowercase, uppercase, reversed reporter
4. no 'beep' block
5. who did youget that 'key pressed' block from? it was my idea first...
6. no 'quit scratch' block

other than that, great job!! and nXIII, i'm only joking.

1. It's called CYOB
2. It's called CYOB
3. It's called CYOB
4. It's called CYOB
5. I made it first, look on the topic by shadow_7283
6. WHAT THE-? Um.... oh sure, that's a great block  roll

EDIT: oh, you're joking.... sorry 'bout that.

Last edited by nXIII (2010-05-17 20:26:40)


nXIII

Offline

 

#369 2010-05-17 19:56:38

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

markyparky56 wrote:

randalpik wrote:

markyparky56 wrote:


*cough* Panther *cough* copier *cough*

Erm. no. I actually found these blocks myself. Just because panther made something doesn't mean that anyone else who made it copied panther.

Oh sorry. I was just assuming since you stole the recived block out of panther (Against the TOS that you agreed to when downloading)  that you were copying the variable blocks aswell.

Actually, I gave full credit to panther as credited in the ToS when I made this block public.


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#370 2010-05-17 20:03:19

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Cool custom blocks in Scratch

LS97 wrote:

wow, had a look at panther. nice job people! (apart from nXIII. i'm getting meaner now).
but there's a lot of things you're missing.
1. no sprite touching sprite boolean
2. no mid/right button pressed boolean
3. no lowercase, uppercase, reversed reporter
4. no 'beep' block
5. who did youget that 'key pressed' block from? it was my idea first...
6. no 'quit scratch' block

other than that, great job!! and nXIII, i'm only joking.

is quit scratch blockspec ('quit srcatch' #- #quit) or ('quit srcatch' #- #quitScratch) or something else?


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#371 2010-05-17 21:27:57

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

This is getting off topic... maybe we should make a new post called "the argument between randalpik and the panther team about lawsuits" LOL  big_smile


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#372 2010-05-17 21:33:45

randalpik
Scratcher
Registered: 2008-07-27
Posts: 82

Re: Cool custom blocks in Scratch

randalpik wrote:

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.

Never mind... I think I have it now


My stuff: http://scratch.mit.edu/users/randalpik
Your face: Look at a gopher

Offline

 

#373 2010-05-17 21:58:52

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Cool custom blocks in Scratch

randalpik wrote:

randalpik wrote:

Where is the code for the "set variable to" and "change variable by" blocks? Because I am working with variable manipulation while a script is running, I need to find them in order to change them to a string box from the drop-down list.

Never mind... I think I have it now

Oh, because we wouldn't know where you got THAT idea from....  roll


nXIII

Offline

 

#374 2010-05-18 03:50:01

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Cool custom blocks in Scratch

Jakey22 wrote:

Sperry wrote:

Jakey22 wrote:

I need some code for a  <[] contains []> block.

I think it is:

Code:

if: t1 contains: t2
^ (t1 findString: t2)

Does that work?

I tried it and it didn't work, although I might have written the block-specs wrong. also, it is supposed to be a boolean.

Sorry, that didnt work. Try this:

Code:

if: t1 contains: t2
((t1 findString: t2) > 0) ifTrue: [^ true]
^ false

Code:

('%s contains %s' #b #if:contains:)

That better?


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#375 2010-05-18 07:38:42

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: Cool custom blocks in Scratch

Can Anybody Get The Clone Block That Works In Presentation Mode? I Already Have The Delete Block Work, But Not The Clone. Please Help!

And nXIII, I'm Not Accepting Your Big 'Talk' About Stealing The Blocks From Panther, Because Panther's File I/O, Clone/Delete, And All The Other Blocks That Are Hacked Command Blocks DO NOT Work For Me. So I'm Not Accepting It.

Offline

 

Board footer