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

#1 2011-01-27 02:56:04

Flubbateios
Scratcher
Registered: 2011-01-16
Posts: 7

How do you make good collision?

How do you make good collision?

here is my gravity system.

<when green flag clicked>
<forever if  <not<touching color[red] >> etc the other colors that i want to collide
<change y by( -1)

Please help


http://scratch.mit.edu/static/icons/buddy/691496_med.png?t=2010-12-30+17%3A13%3A57

Offline

 

#2 2011-01-27 08:36:25

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: How do you make good collision?

What type of collisions do you want?  Rebounding, standing, accelerated gravity?  There are a huge variety of ways to do collisions, so you'll have to be more specific.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2011-01-27 11:15:38

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How do you make good collision?

http://scratch.mit.edu/projects/archmage/101212

Download this and use the scripts for perfect collision.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2011-01-27 12:43:02

Flubbateios
Scratcher
Registered: 2011-01-16
Posts: 7

Re: How do you make good collision?

AtomicBawm3 wrote:

What type of collisions do you want?  Rebounding, standing, accelerated gravity?  There are a huge variety of ways to do collisions, so you'll have to be more specific.

I mean to collide with other objects (includes gravity) ,is that descriptive enough ?


http://scratch.mit.edu/static/icons/buddy/691496_med.png?t=2010-12-30+17%3A13%3A57

Offline

 

Board footer