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

#1 2008-08-15 06:33:44

parragon
Scratcher
Registered: 2008-08-11
Posts: 24

Solid Blocks

Could you make it possible that you can make sprites solid,
For instance if you made the floor of a lift solid or a wall solid, then make your character solid, the character is unable to pass into or through them. This would make life so much easier!!!

Parragon,

Offline

 

#2 2008-08-15 10:41:13

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Solid Blocks

there are some programming techniques for doing this.  One reliable method is to create a sprite the size of your character that is a rectangle with each side a different colour.  in this sprite you have scripts such as:  when left arrow pressed, if not colour of left of rectangle over colour of wall change X by -2.  Do the same for the right hand side and top and bottom if you want jumping.  Then you make this sprite have ghost effect of 100 so you cant see it.  then make your character, forever goto rectangle.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

Board footer