on topic plz....
@NXiii
A feature for CYOB. A global setable variable in CYOB. So like a normal global variable but in Squeak, so it can be used in multiple blocks....
Offline
johnnydean1 wrote:
on topic plz....
@NXiii
A feature for CYOB. A global setable variable in CYOB. So like a normal global variable but in Squeak, so it can be used in multiple blocks....
Global squeak variables already exist. And you can just directly reference the stage's variables dictionary.
Offline
thx. could I replace foo with what I want
Offline
jd submitted a "place of $String$ in list $List$" Block.... does that do for you?
|t3 t4 t5 t6| t3_ 0. t4_ 0. t5_ self lineCountOfList: (t2). t6_ ''. t5 timesRepeat: [ t3_ t3 + 1. t4_ self getLine: (t3) ofList: (t2). t4 = t1 ifTrue: [ t6 = '' ifFalse: [ t6_ self concatenate: (t6) with: ('/'). ]. t6_ self concatenate: (t6) with: (t3). ]. ]. t6 = '' ifTrue: [ ^'0'. ] ifFalse:[ ^t6. ].
hope that helps... *cheezy smile* Have a nice evening and thank you for choosing Blockshop!
Offline
sparks wrote:
jd submitted a "place of $String$ in list $List$" Block.... does that do for you?
Code:
|t3 t4 t5 t6| t3_ 0. t4_ 0. t5_ self lineCountOfList: (t2). t6_ ''. t5 timesRepeat: [ t3_ t3 + 1. t4_ self getLine: (t3) ofList: (t2). t4 = t1 ifTrue: [ t6 = '' ifFalse: [ t6_ self concatenate: (t6) with: ('/'). ]. t6_ self concatenate: (t6) with: (t3). ]. ]. t6 = '' ifTrue: [ ^'0'. ] ifFalse:[ ^t6. ].hope that helps... *cheezy smile* Have a nice evening and thank you for choosing Blockshop!
It would have been even cheezier if you said 'Have a nice evening and thank you for choosing Blockshop airlines!'
Offline
I am just wondering, how to I call a stage variable so normaly I put
get_ stage + variable
but how to do it with stage?.
Offline
(self ownerThatIsA: ScratchStageMorph) vars at: 'foo' put: 0.
how would I use the variable?
normaly I would just type the name
foo
but how?
Offline
johnnydean1 wrote:
(self ownerThatIsA: ScratchStageMorph) vars at: 'foo' put: 0.
how would I use the variable?
normaly I would just type the name
foo
but how?
(self ownerThatIsA: ScratchStageMorph) vars at: 'foo'
Offline
thx
by the way can any1 make me a block that will show only part of a sprite thats on screen. I am making a PKMN game and scrollings fine untill I enter a large area then it laggs.
Offline
can you implement a feature in 1.1 for me. If <touching $Sprite$ and clones of it>
I need it
I could make it in CYOB but as CYOB will not work in java player, I am forced to not use it. So could you?
Offline
***I HAVE A GREAT IDEA!***
Let's NOT make a java player, but instead make a player using the squeak online VM! It would be much easier, and would even have CYOB!
Offline
SeptimusHeap wrote:
***I HAVE A GREAT IDEA!***
Let's NOT make a java player, but instead make a player using the squeak online VM! It would be much easier, and would even have CYOB!
Did you hear what I posted on that before? The online VM is extremely slow, it takes a whole minute for me to drag a block into place, and I'm on fast wi-fi!
Offline
ScratchReallyROCKS wrote:
SeptimusHeap wrote:
***I HAVE A GREAT IDEA!***
Let's NOT make a java player, but instead make a player using the squeak online VM! It would be much easier, and would even have CYOB!Did you hear what I posted on that before? The online VM is extremely slow, it takes a whole minute for me to drag a block into place, and I'm on fast wi-fi!
Offline