I'm back.
I'm making a new block to send blocks to another sprite and have it run them, but it's not working.
Here is my code:
make: t1 do: t2 ^ Compiler evaluate: t2 for: t1 logged: false
When I do it, it says that there is a syntax error for the CSlotMorph that the blocks go into (remember, Slash is based on BYOB). For some reason, it is reporting itself instead of the blocks. Can anyone help? Once this is solved, I can release Slash 1.2, with a customizable color scheme!
Offline
Billybob-Mario wrote:
I'm back.
I'm making a new block to send blocks to another sprite and have it run them, but it's not working.
Here is my code:Code:
make: t1 do: t2 ^ Compiler evaluate: t2 for: t1 logged: falseWhen I do it, it says that there is a syntax error for the CSlotMorph that the blocks go into (remember, Slash is based on BYOB). For some reason, it is reporting itself instead of the blocks. Can anyone help? Once this is solved, I can release Slash 1.2, with a customizable color scheme!
I have been working on that for a LOOOOOOONG time. You may have solved my problem lemme check.
Offline
Pecola1 wrote:
Billybob-Mario wrote:
I'm back.
I'm making a new block to send blocks to another sprite and have it run them, but it's not working.
Here is my code:Code:
make: t1 do: t2 ^ Compiler evaluate: t2 for: t1 logged: falseWhen I do it, it says that there is a syntax error for the CSlotMorph that the blocks go into (remember, Slash is based on BYOB). For some reason, it is reporting itself instead of the blocks. Can anyone help? Once this is solved, I can release Slash 1.2, with a customizable color scheme!
I have been working on that for a LOOOOOOONG time. You may have solved my problem lemme check.
Nope. Didn't work. Is it a c block? If so, you cannot make it a variable in the method. You could make BYOB's lambada C-block. I don't know how but its possible.
Offline
Pecola1 wrote:
Pecola1 wrote:
Billybob-Mario wrote:
I'm back.
I'm making a new block to send blocks to another sprite and have it run them, but it's not working.
Here is my code:Code:
make: t1 do: t2 ^ Compiler evaluate: t2 for: t1 logged: falseWhen I do it, it says that there is a syntax error for the CSlotMorph that the blocks go into (remember, Slash is based on BYOB). For some reason, it is reporting itself instead of the blocks. Can anyone help? Once this is solved, I can release Slash 1.2, with a customizable color scheme!
I have been working on that for a LOOOOOOONG time. You may have solved my problem lemme check.
Nope. Didn't work. Is it a c block? If so, you cannot make it a variable in the method. You could make BYOB's lambada C-block. I don't know how but its possible.
I tried the special BYOB C-block and also the slot that looks like a block outline, but neither worked.
Offline
Make it a C block and it requires execution engine edits.
I.E. Making a class in the actual class with the C shapes.
And another thing: You need the popStackFrame and pushStackFrame methods in there somewhere.
Or else they dont run.
Offline
That code is for executing Squeak commands on a sprite, such as 'self isHidden: true'
not for running Scratch blocks.
Offline
Is there a way to convert the blocks into Squeak commands?
Offline
bump
Offline
Rebump.
Offline
Can anyone help me? (more)
Offline
LS97 said that that is how you execute Squeak commands. Make an array of all of the blocks code, and then just fetch out which commands to run. (can't show you how to do it, don't know squeak)
Offline
Try this:
http://scratch.mit.edu/forums/viewtopic.php?id=61203
Works in BYOB (with some hacking, just so you know. you said your mod is based on BYON anyways, so...)
Offline
I did it, it's already in SlasH
Offline