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

#1 2010-07-28 21:21:46

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

mesh blocks, ignore me!

here are mesh blocks for rocksandfire:

hostMesh
    | t1 t2 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t1 workPane scratchServer
        ifNil:
            [t2 _ ScratchServer new.
            t2 stage: t1 workPane.
            t1 workPane scratchServer: t2].
    t1 workPane scratchServer startHosting

getMeshIPAddress
    | t1 |
    Socket initializeNetwork.
    t1 _ NetNameResolver localHostAddress.
    ^ NetNameResolver stringFromAddress: t1

getMeshIPAddress
    | t1 |
    Socket initializeNetwork.
    t1 _ NetNameResolver localHostAddress.
    ^ NetNameResolver stringFromAddress: t1

isHostingMesh
    | t1 t2 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    (t2 _ t1 workPane scratchServer) ifNil: [^ false].
    ^ t2 isHosting

joinMesh: t1
    | t2 t3 |
    (t3 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t3 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
    t2 _ ScratchServer new.
    t2 stage: t3 workPane.
    t3 workPane scratchServer: t2.
    t1 size = 0 ifTrue: [^ ''].
    t3 workPane scratchServer joinSessionAt: t1

and you should be able to figure out the rest from other tuts  tongue


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#2 2010-07-28 21:22:24

RocksAndFire
Scratcher
Registered: 2010-04-17
Posts: 1000+

Re: mesh blocks, ignore me!

Thanks!

Offline

 

#3 2010-07-29 03:28:23

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

Re: mesh blocks, ignore me!

Arent these out of Panther?


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2010-08-01 10:56:00

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

Re: mesh blocks, ignore me!

Yes....


nXIII

Offline

 

#5 2010-08-02 15:02:23

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

Re: mesh blocks, ignore me!

hey, he wanted the mesh blocks, and didnt want to download panther..... well, srz if you are angeredry  tongue


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#6 2010-08-02 16:01:51

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: mesh blocks, ignore me!

Is he using them in his own Modification?


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#7 2010-08-02 18:01:23

poppypaynterscratch
Scratcher
Registered: 2009-09-20
Posts: 100+

Re: mesh blocks, ignore me!

no, he just wanted them in his scratch for some reason...


http://i33.tinypic.com/2dw6hxv.gif

Offline

 

#8 2010-08-04 17:53:28

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: mesh blocks, ignore me!

am I allowed to use these for my mod if I say they are from Panther?


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#9 2010-08-05 19:25:11

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

Re: mesh blocks, ignore me!

Try to make something else in your mod aside from blocks, but yes, you can.


nXIII

Offline

 

#10 2010-08-09 04:06:58

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

Re: mesh blocks, ignore me!

you posted the get mesh ip one twice


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

 

Board footer