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

#1 2013-02-26 14:37:26

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

2 more modding questions

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

 

#2 2013-02-27 07:18:18

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: 2 more modding questions

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)


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=machinespray

Offline

 

#3 2013-02-27 11:41:12

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: 2 more modding questions

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

 

#4 2013-02-27 18:54:01

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: 2 more modding questions

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.


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=machinespray

Offline

 

#5 2013-02-28 08:51:51

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: 2 more modding questions

Thanks so much, I can now start to actually make a decent mod!

Offline

 

#6 2013-03-01 07:00:52

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: 2 more modding questions

shadowmouse wrote:

Thanks so much, I can now start to actually make a decent mod!

Your welcome


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=machinespray

Offline

 

#7 2013-03-03 05:29:55

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: 2 more modding questions

Another question:
How do you add more logic gates (nand, nor, xor, xnor)?

Offline

 

#8 2013-03-03 11:09:41

machinespray
Scratcher
Registered: 2012-05-09
Posts: 93

Re: 2 more modding questions

shadowmouse wrote:

Another question:
How do you add more logic gates (nand, nor, xor, xnor)?

What do you mean by "logic gates"?


I am made a mod for Scratch. If you have any ideas for the mod please post it on this forum page.http://scratch.mit.edu/forums/viewtopic.php?id=108265http://internetometer.com/image/38591.png
I am http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=machinespray

Offline

 

#9 2013-03-03 11:30:39

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: 2 more modding questions

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

 

Board footer