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

#1 2010-05-05 18:08:32

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Atomic Games code 1.0 (Way too early)

I have decided to create a project (may not be out yet, so stop searching) that will allow you to create projects.  So what else is new?  In code!  Every scratch feature in code!  As far as I know, every other project like this is more limited.  So to learn how to use it, read below.

Last edited by maxskywalker (2010-07-12 18:14:08)

Offline

 

#2 2010-05-06 07:16:32

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

The / / law
_________________________________________________________________________________


          The first and most important part of Cat-Dog Games (CDG) is the double slash law.  This may sound (look?) complicated (I disagree), but it is really quite simple.  All this means is that every command starts with and ends with a / mark.

Last edited by maxskywalker (2010-07-12 18:15:04)

Offline

 

#3 2010-05-06 07:17:42

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

Saying What's On Your Mind
_________________________________________________________________________________

         They first thing to learn is the 'say' block.  Simply type /say/.  Below the /say/ code type whatever you want to say.  While typing what to say, remember that when writing below things (move [  ] steps| say [  ] for [  ] secs) is the only exception to the double slash law.  Sorry for the confusion, but it was the best way to program it, and will not place a limit on what you can do.  If you want a 'say for ( ) secs' block, simply type /say/ /secs/.  Please note the space between /say/ and /secs/.  Below the code, first type the time in seconds, then what to say.  Make sure that you have enough room to do both of these.

Last edited by maxskywalker (2010-07-13 13:50:58)

Offline

 

#4 2010-05-06 07:28:00

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

Moving About
_________________________________________________________________________________

         The motion blocks are simple.  Just type the following:

/goto/
[ x ]
[ y ]

or:

/steps/
[ how many steps ]

or perphaps:

/glito/
[ x ]
[ y ]
[ time in seconds ]

where /gito/ is short for "glide to".  Next comes the most commonly used (I think),

/chang/x/
[ how far ]

/chang/y/
[ how far ]

/set/x/
[ x ]

/set/y/
[ y ]

and to show the 'x' and 'y' variables, simply type /x/ and /y/

Offline

 

#5 2010-05-06 07:33:20

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

Extension to above
                           /\
                           |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

         To turn, type /turn/R/ [ degrees ] or, to turn counter-clockwise /turn/L/.

Offline

 

#6 2010-05-06 07:43:10

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

Looks aren't a necessity, but they help
_________________________________________________________________________________

         We can now examine the Looks scripts.  The only costumes you get in 0.5 are Cat 1 A and Cat 1 B, so this won't be too useful.  But hey, you'll need it for later, and it might be useful.  Just type /nexctos/ for next costume, and, though it will be useless with only two costumes, but you will need it in 1.0.  The code is /swicost/ and below the script, type which costume you want (in numbers).  Next, the effect scripts.

Color change
/chang/col/
[ how much ]

Whirl change
/chang/whr/

Fisheye change
/chang/fsh/

Pixelate change
/chang/pix/

Mosaic change
/chang/mos/

Brightness change
/chang/bri/

Ghost change
chang/gho/

and for set, change the /chang/ to /set/.

Offline

 

#7 2010-05-06 15:39:02

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

To clear graphic effects, type /clear/graph/.  Size is the easiest.  Simply write

/size/to/
[ wanted size ]

or

/chang/size/
[ how much ]

Also, you can use the 'go to front' block with /goto/lay/ and back a layer(s) with the code

/gobak/lay/
[ how many layers ].

Finally, there are the show/hide scripts.

/show/

/hide/.

I almost forgot, there is the think:

/think/
[ what to think ]

or

/think/
[ how long ]
[ what to think ]

Offline

 

#8 2010-07-13 13:53:26

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Atomic Games code 1.0 (Way too early)

To finish this section, the costume scripts:

Next costume would be:

/nextCost/

and to set a costume:

/cost/
[costume#]

Please note that if I ever download panther, you will be able to draw your own costumes.

Last edited by maxskywalker (2010-07-13 13:54:20)

Offline

 

#9 2010-07-15 19:32:09

gameboss7
Scratcher
Registered: 2010-04-18
Posts: 6

Re: Atomic Games code 1.0 (Way too early)


http://cleverhousewife.com/wp-content/uploads/2010/05/taco.png Obey da taco!

Offline

 

Board footer