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

#1 2010-04-28 16:12:20

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Attach Sprite Block

SPRITE MORPH ONLY code:  attachSprite: t1
self addMorph: t1





blockspec: ('attach%m' #- #attachSprite:)


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#2 2010-04-28 16:15:55

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

Re: Attach Sprite Block

Good how about a un attach block


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-04-28 16:59:02

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

Re: Attach Sprite Block

johnnydean1 wrote:

Good how about a un attach block

Something like

unAttachMe

| owner |
owner _ self owner owner.
(self owner isKindOf: ScratchStageMorph) ifTrue: [ ^ self].
self delete.
owner addMorphFront: self.

Except I forget if owner is a var or a message

Last edited by nXIII (2010-04-28 16:59:13)


nXIII

Offline

 

#4 2010-05-01 09:46:01

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Attach Sprite Block

Unattatch doesn't work, and attatched sprites don't appear on the <x position of sprite1> block.

Offline

 

#5 2010-05-01 16:17:49

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Attach Sprite Block

Could you make a detach all block?

Offline

 

#6 2010-05-01 18:08:03

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

Re: Attach Sprite Block

Billybob-Mario wrote:

Could you make a detach all block?

yes.


nXIII

Offline

 

#7 2010-05-01 19:02:56

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Attach Sprite Block

nXIII wrote:

Billybob-Mario wrote:

Could you make a detach all block?

yes.

How?

Offline

 

Board footer