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

#1 2012-08-08 14:13:17

bi0
New Scratcher
Registered: 2012-08-08
Posts: 10

collison

I'm making a game and I need to know how to do this. I don't really know how to make it so my sprite won't be able to pass through the blocks. It's on level 2 of this demo if you don't understand what I mean.

http://scratch.mit.edu/projects/bi0/2720227

I haven't made the 'blocks' seperate sprites, they are part of the background, so I'm wondering how I could make it so he collides with them and cant walk through them?

Offline

 

#2 2012-08-08 14:27:27

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: collison

remix this.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-08-08 15:19:33

bi0
New Scratcher
Registered: 2012-08-08
Posts: 10

Re: collison

Firedrake969 wrote:

remix this.

i tried to remix it, but my sprite moves around kind of glitchy and weird. could you please show me how to incorporate it into my game? thank you (:

Offline

 

#4 2012-08-08 15:31:05

bi0
New Scratcher
Registered: 2012-08-08
Posts: 10

Re: collison

http://scratch.mit.edu/projects/bi0/2720399 <--
i have this now. 2 problems, the guy is constantly moving up and down, and once you jump, the guy stops using his walk animation and turning around.
thanks.

Offline

 

Board footer