Title says it all really.
1) How do you change the default sprite that comes up when you open the source code? I cchanged the dited the defaultSpriteCostume.gif in paint and when I tryed to open the source code it came up with an error *key not found).
2) How do you add methods (I think that's what thy're called)? Because at the moment I'm restricted to using the pre-existing commands such as pointToX:y:, changeCostumeIndex e.t.c.
Any help would be greatly appreciated.
Offline
shadowmouse wrote:
Title says it all really.
1) How do you change the default sprite that comes up when you open the source code? I cchanged the dited the defaultSpriteCostume.gif in paint and when I tryed to open the source code it came up with an error *key not found).
2) How do you add methods (I think that's what thy're called)? Because at the moment I'm restricted to using the pre-existing commands such as pointToX:y:, changeCostumeIndex e.t.c.
Any help would be greatly appreciated.
To change the default sprite save the sprite under the folder media/costumes,To make a method follow the instructions on this project: http://scratch.mit.edu/projects/machinespray/3134979 (sorry if it is hard to see)
Offline
I'm using the source code and a scratchskin folder so there is no media/costumes, and sorry but I can't read what the project says.
Offline
shadowmouse wrote:
I'm using the source code and a scratchskin folder so there is no media/costumes, and sorry but I can't read what the project says.
I updated the project. And to change the default sprite copy / paste from the program files.
Offline
Thanks so much, I can now start to actually make a decent mod!
Offline
shadowmouse wrote:
Thanks so much, I can now start to actually make a decent mod!
Your welcome
Offline
Another question:
How do you add more logic gates (nand, nor, xor, xnor)?
Offline
shadowmouse wrote:
Another question:
How do you add more logic gates (nand, nor, xor, xnor)?
What do you mean by "logic gates"?
Offline
The ones in scratch are 'and 'or' 'nor', booleans where you put in 1 or more true/false values and it returns one true or false value. They are used fundamentally in computers where they converts 1s and 0s (or ons and offs) to one 1 or 0 (or on or off).
nand reports true unless both inputs are true
nor reports true if both inputs are false
xor reports true if one value is true and the other is false (as opposed to or which reports true if both values are true as well)
and xnor reports true if both values are true or both valeus are false.
They can all easily be worked around in Scratch, but I wanted to now how to code them in squeak (which already has & (and), | (or) and not).
Offline