Monday, February 18, 2008

How to make a race using Scratch.


1) Open the programme Scratch, and choose two suitable racing sprites. The sprites can be anything you want them to be. But make sure when you pick your character it has two pictures. So that you get consistant movement.
Costom tab> import



2) Once the sprites are on your page. Reduce their sizes to about 40%.
Tab> Looks > Set size to 40 %



3) To get your sprites to move. Click on one, then follow the steps below.
> When clicked
Forver
Move
wait
next costume
move
wait
next costume



4) Make sure that you repeat the same steps for the other sprite/ character.
To make it abit easier duplicate the original sprite, and dont redo the whole thing.

5) When you have your sprite moving, it will continue moving off the screen.
To stop this problem from occuring go to:
Motion> if on edge, bounce
Also alter the rotation for the back and forward motion so
that your sprite isnt upside down.



6) At this moment if you race your sprites they should be moving at the same speed. To make it alittle bit more interesting 'Randomise the motion'.
Numbers> Pick random 1 to 10 ( Make sure that you attach this to move)


7) The race is nearly complete. All you need know is a finish line.
New sprite
When clicked
Pen down
Point in direction up
Set pen size to 20
Move 20 steps














8) The final stage to this race is to make one character/ sprite cross the finnish line, and say i win. To achieve this make sure that your script looks like the following.
forever
if touching colour
Say “I win!” for 2 seconds
Stop all
else
movement script ( It should look like the following picture)




























Tuesday, April 10, 2007

Glossary

GB- Gigabyte

KB- Kilobyte

MB- Megabyte

TB- Terabyte

Hex Codes

Red------------#FF0000
Green----------#00FF00
Blue------------#0000FF
Grey------------#CCCCCC
White ----------#FFFFFF
Yellow-----------#FFFF00
Magenta--------#FF00FF
Aqua or cyan---#00FFFF

Caracteristics of bmp, gif, jpeg, png & xcf

File----Stands-----web--------supports --------Number----compression
Type---for----compatiobale--web animation--of colours------------

bmp---Bitmap--------Yes-----------No-------------Millions-------No

--------Graphic
gif-----Interchange---Yes----------Yes-----------256 max-------Yes
--------Format

--------Joint
jpeg---Photgraphics--Yes----------No-----------Millions --------Yes
--------experts group-------------------------------2 24

--------Portable
png----network------Yes------------?--------------Vary----------Yes
--------graphics

-------Experimental
xcf---computing----No------------No-------------Millions-------No
-------facility

Transparent backgrounds

How can you check weather an image has an alpha (transparency) channel or not?

One of the main ways that you can check if an image has a transparent backround is through the program "Gimp."



  • Use an erraser to rub out the image

If the image you erase leaves a white trail behind it, it is not transparent. However if you come across a checkard board effect, than it has a transperant background.

  • Select colour picker and click on image

With this you can see all the (RGBA) values

To add an alpha channel

Rightclick/layer/transperancy and Add Alpha Channel