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

#1 2012-02-05 09:07:21

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Import Sprite Block Please!

Can someone make an "Import Sprite from URL []"? block?

Thanks! It should be for Panther!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#2 2012-02-05 12:40:50

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

bumpy


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#3 2012-02-05 13:02:43

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Import Sprite Block Please!

this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#4 2012-02-05 13:49:15

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

danwoodski wrote:

this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.

aww.

well, a block?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#5 2012-02-05 14:00:08

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: Import Sprite Block Please!

You can just write a block spec for it, can't you?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#6 2012-02-05 14:11:50

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

danwoodski wrote:

You can just write a block spec for it, can't you?

I tried, but I'm not good!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#7 2012-02-09 12:09:19

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

Servine wrote:

danwoodski wrote:

this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.

aww.

well, a block?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#8 2012-02-10 00:18:30

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Import Sprite Block Please!

Servine wrote:

Servine wrote:

danwoodski wrote:

this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.

aww.

well, a block?

i thought there was already a block for this?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#9 2012-02-10 00:45:28

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

Re: Import Sprite Block Please!

Hmmmmm, I bet there is a way. If you take the code that imports a sprite, then open a http socket to the url, get the info, thn put it through the import script, it might work.


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

Offline

 

#10 2012-02-10 03:36:43

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

Servine wrote:

Servine wrote:

danwoodski wrote:

this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.

aww.

well, a block?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#11 2012-02-10 06:32:25

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

Please help (looks at LS97)


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#12 2012-02-10 06:33:46

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

Re: Import Sprite Block Please!

hehehe.  While I'm not LS97, I can still see if I can be of assistence.  Gimme, lessee 10 mins?


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

Offline

 

#13 2012-02-10 06:38:50

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

ssss wrote:

hehehe.  While I'm not LS97, I can still see if I can be of assistence.  Gimme, lessee 10 mins?

ok. thx.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#14 2012-02-10 06:47:34

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

Re: Import Sprite Block Please!

Servine wrote:

ssss wrote:

hehehe.  While I'm not LS97, I can still see if I can be of assistence.  Gimme, lessee 10 mins?

ok. thx.

Sorry.  hmm   Too confusing for me  sad   sad


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

Offline

 

#15 2012-02-10 06:48:17

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

ssss wrote:

Servine wrote:

ssss wrote:

hehehe.  While I'm not LS97, I can still see if I can be of assistence.  Gimme, lessee 10 mins?

ok. thx.

Sorry.  hmm   Too confusing for me  sad   sad

sad

Thx anyway.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#16 2012-02-10 06:50:34

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

Re: Import Sprite Block Please!

Servine wrote:

ssss wrote:

Servine wrote:


ok. thx.

Sorry.  hmm   Too confusing for me  sad   sad

sad

Thx anyway.

It seems that trying to use [ScratchPlugin primOpenURL: '' , t1 asString] was pointless  hmm


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

Offline

 

#17 2012-02-10 06:55:16

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

ssss wrote:

Servine wrote:

ssss wrote:


Sorry.  hmm   Too confusing for me  sad   sad

sad

Thx anyway.

It seems that trying to use [ScratchPlugin primOpenURL: '' , t1 asString] was pointless  hmm

hm.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#18 2012-02-10 08:08:19

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

Would it work if I re-wrote it?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#19 2012-02-12 08:41:02

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

help. PLEASE!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#20 2012-02-12 08:53:05

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Import Sprite Block Please!

Servine wrote:

help. PLEASE!

Ask it to the modernators!


internet's all about cats today.

Offline

 

#21 2012-02-12 09:10:07

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Import Sprite Block Please!

here's the code to import from a file:


blockspec:

Code:

            ('import sprite %s'                - doimport:)

method:

Code:

doimport: name

| t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].

t1 importSpriteOrProject:name.

http://i.imgur.com/1QqnHxQ.png

Offline

 

#22 2012-02-12 09:37:55

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

TRocket wrote:

here's the code to import from a file:


blockspec:

Code:

            ('import sprite %s'                - doimport:)

method:

Code:

doimport: name

| t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].

t1 importSpriteOrProject:name.

does it work in panther?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#23 2012-02-12 09:48:32

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

Servine wrote:

TRocket wrote:

here's the code to import from a file:


blockspec:

Code:

            ('import sprite %s'                - doimport:)

method:

Code:

doimport: name

| t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].

t1 importSpriteOrProject:name.

does it work in panther?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#24 2012-02-12 10:06:39

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

Re: Import Sprite Block Please!

Servine wrote:

TRocket wrote:

here's the code to import from a file:


blockspec:

Code:

            ('import sprite %s'                - doimport:)

method:

Code:

doimport: name

| t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].

t1 importSpriteOrProject:name.

does it work in panther?

It should; you'll just have to tweak the blockspec.


nXIII

Offline

 

#25 2012-02-12 10:12:53

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: Import Sprite Block Please!

nXIII wrote:

Servine wrote:

TRocket wrote:

here's the code to import from a file:


blockspec:

Code:

            ('import sprite %s'                - doimport:)

method:

Code:

doimport: name

| t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].

t1 importSpriteOrProject:name.

does it work in panther?

It should; you'll just have to tweak the blockspec.

I dont know how to, I've tried.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

Board footer