Heliosa wrote:
How exactly do you find the data you receive from a mesh? Also, is there a way to test a mesh project locally?
Host and receive on your computer. That's how I test mesh things.
Offline
sparks wrote:
near the bottom of the sensing tab there's a ([sensor A] value) block or something similar. Once you connect to mesh, the variables in the other project will appear in that dropdown.
Yes, that does work, though it gets pretty annoyed when you reload the project after saving, personaly I prefer to use that (Get [variable v] from mesh) reporter of Jd1's.
Offline
markyparky56 wrote:
sparks wrote:
near the bottom of the sensing tab there's a ([sensor A] value) block or something similar. Once you connect to mesh, the variables in the other project will appear in that dropdown.
Yes, that does work, though it gets pretty annoyed when you reload the project after saving, personaly I prefer to use that (Get [variable v] from mesh) reporter of Jd1's.
Can I have a link to that block's code maybe?
Offline
oh! nXIII, the download counter has stayed at 866 for a few weeks now, is it broken or is noone downloading Panther anymore? I think it's broken because I downloaded it on a school computer the other day and nothing happened.
Offline
Ill see if Ive got a copy of my sensing block. In future if you want a block made/want me to get the code for a block post a comment on one of my projects.
EDIT:
Input1:
get $String$ from mesh
Input2:
-r
Input3:
|inmesh t2 t3|
(t3 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t3 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
(t2 _ t3 workPane scratchServer) ifNil: [t2_ false.].
t2 = false
ifTrue: [
inmesh_ false.
]
ifFalse:
[
inmesh_ true.
].
inmesh = true
ifTrue: [
^ self sensor: (t1).
]
ifFalse: [
^ 0.
].
EDIT No.2
Try this:
|inmesh t2 t3 sensors part2 |
part2_ true. "Set to false for old one"
(t3 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t3 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
(t2 _ t3 workPane scratchServer) ifNil: [t2_ false.].
t2 = false
ifTrue: [
inmesh_ false.
]
ifFalse:
[
inmesh_ true.
].
inmesh = true
ifTrue: [
part2 = true
ifTrue: [
sensors_ self hookupSensorNames.
sensors_ sensors asString.
sensors_ self indexOf: (t1) startingAt: (0) in: (sensors).
sensors = 0
ifTrue: [
inmesh_ false.
].
].
inmesh = true
ifTrue: [
^ self sensor: (t1).
].
]
ifFalse: [
^ 0.
].
Last edited by johnnydean1 (2010-10-07 11:20:22)
Offline
thanks for the helpful post, jd
I checked our archive, and we have this block submitted by you which I think is the one you're on about:
get $String$ from mesh -
|inmesh t2 t3| (t3 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t3 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. (t2 _ t3 workPane scratchServer) ifNil: [t2_ false.]. t2 = false ifTrue: [ inmesh_ false. ] ifFalse: [ inmesh_ true. ]. inmesh = true ifTrue: [ ^ self sensor: (t1). ] ifFalse: [ ^ 0. ].
Offline
sparks wrote:
thanks for the helpful post, jd
I checked our archive, and we have this block submitted by you which I think is the one you're on about:Code:
get $String$ from mesh -Code:
|inmesh t2 t3| (t3 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t3 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. (t2 _ t3 workPane scratchServer) ifNil: [t2_ false.]. t2 = false ifTrue: [ inmesh_ false. ] ifFalse: [ inmesh_ true. ]. inmesh = true ifTrue: [ ^ self sensor: (t1). ] ifFalse: [ ^ 0. ].
Its different because you don't have to be in a mesh to get the block, thats why I like it.
Offline
Yes, my new one that I posted before should never report a error!
I keep making it better!
Offline
nXIII wrote:
Sorry to intervene, but this is the Panther development thread and none of the recent conversations have anything to do with Panther for a while.
Wow.
That was the 3000th post.
Offline
Does anyone look at the contests page? Just wondering...
Offline
Im waiting for 1.1 to make anything
Offline
sparks wrote:
gah! sorry to say that I have no internet until the 23rd october. It's annoying me as much as anyone
You may want to update thes site. The forums are outta-wack and it still says I'm a dev
The contest has been going for a few months x_x
Offline
hey guys, i've created a sequel to m zombie game and made it exclusively for panther, you can view it here; http://scratch.mit.edu/projects/PlayWithFire/1377449
just wanted to say that me making my zombie game, red dawn awakening 2, exclusively for panther is me showing my support for you guys, keep up the great work!
oh and i've linked any people who don't own panther to your website so that they can download it.
Offline
sounds cool!
could i get panther's email? or whoever's email i should email it too
Offline
the panther email (which I assume I am allowed to share here as it's not a personal email or contact and is on our site anyway) is pantherteam@ymail.com
there's even an email tag in the bb code! anyhoo, if I wasn't supposed to post that, sorry, you can see it here at our site - be sure to register your email to your scratch username as explained on that page http://pantherprogramming.weebly.com/re … -form.html
Offline
Roughly 11.3% of all posts in Advanced Topics are in here.
Offline