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

#1 2011-07-15 05:49:48

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Block help?!

I need to make a [Make <sprite x> <draggable/non draggable>] block.  Credit will be given in Rocket!.  I made a boolean to report if draggable:
('draggable' #b #draggable)
and the reporter version:
('draggable' #r #draggable) if that helps (It's under SpriteScratchMorph).

So, help?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#2 2011-07-15 18:32:31

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Block help?!

*Cough*
          Bump?  The next rocket won't be released without this...


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2011-07-20 22:48:23

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

Re: Block help?!

Here you go!

For making yourself draggable/undraggable:

Code:

('make self draggable' #- #MakeDraggable) ('make self undraggable' #- #MakeUndraggable)

MakeDraggable
draggable _ true

MakeUndraggable
draggable _ false

For altering other sprites, I was unable to figure out how to remove "mouse-pointer" as an option, so it does nothing if "mouse-pointer" is selected.

Code:

('make %m draggable' #- #MakeDraggable:) ('make %m undraggable' #- #MakeUndraggable:)

MakeDraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

MakeUndraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

Since you shared the reporter to the block library, do you mind if I share these?

Offline

 

#4 2011-07-21 00:03:32

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Block help?!

I was going to figure that out!!


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#5 2011-07-21 02:34:21

wulfmaster
Scratcher
Registered: 2011-04-23
Posts: 500+

Re: Block help?!

Greenatic wrote:

Here you go!

For making yourself draggable/undraggable:

Code:

('make self draggable' #- #MakeDraggable) ('make self undraggable' #- #MakeUndraggable)

MakeDraggable
draggable _ true

MakeUndraggable
draggable _ false

For altering other sprites, I was unable to figure out how to remove "mouse-pointer" as an option, so it does nothing if "mouse-pointer" is selected.

Code:

('make %m draggable' #- #MakeDraggable:) ('make %m undraggable' #- #MakeUndraggable:)

MakeDraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

MakeUndraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

Since you shared the reporter to the block library, do you mind if I share these?

Thanks, go ahead!  You made them.  wink


Social Connections - Bringing communities close together! http://cyberkidscountry.com/ip.php

Offline

 

#6 2011-07-21 09:12:38

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

Re: Block help?!

wulfmaster wrote:

Greenatic wrote:

Here you go!

For making yourself draggable/undraggable:

Code:

('make self draggable' #- #MakeDraggable) ('make self undraggable' #- #MakeUndraggable)

MakeDraggable
draggable _ true

MakeUndraggable
draggable _ false

For altering other sprites, I was unable to figure out how to remove "mouse-pointer" as an option, so it does nothing if "mouse-pointer" is selected.

Code:

('make %m draggable' #- #MakeDraggable:) ('make %m undraggable' #- #MakeUndraggable:)

MakeDraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

MakeUndraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

Since you shared the reporter to the block library, do you mind if I share these?

Thanks, go ahead!  You made them.  wink

You're welcome.  Anything else I can do to help?  (even though I'm not sure I'll be able to, my blockmaking experience is very short)

Offline

 

#7 2011-07-21 09:16:39

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Block help?!

Greenatic wrote:

wulfmaster wrote:

Greenatic wrote:

Here you go!

For making yourself draggable/undraggable:

Code:

('make self draggable' #- #MakeDraggable) ('make self undraggable' #- #MakeUndraggable)

MakeDraggable
draggable _ true

MakeUndraggable
draggable _ false

For altering other sprites, I was unable to figure out how to remove "mouse-pointer" as an option, so it does nothing if "mouse-pointer" is selected.

Code:

('make %m draggable' #- #MakeDraggable:) ('make %m undraggable' #- #MakeUndraggable:)

MakeDraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

MakeUndraggable: t1 
    t1 = #mouse ifFalse: [t1 draggable: false]

Since you shared the reporter to the block library, do you mind if I share these?

Thanks, go ahead!  You made them.  wink

You're welcome.  Anything else I can do to help?  (even though I'm not sure I'll be able to, my blockmaking experience is very short)

Not at the moment, thanks!  (Unless you want to become a rocket dev  smile  )


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

Board footer