Thanks for the reply, what i mean is like if a sprite bumps into a wall it doesn't go through it or just slightly bounces off, i'm doing a huge Zelda game, a month in progress so far, and when link bumps into a wall he needs to stay put or just slightly bounce from it!
Last edited by DoctorB (2008-04-20 12:46:05)
Offline
I guess it depends on what you mean by collision detection. Scratch has the built in "Touching xxx" block (where xxx is a sprite name) under the sensing tab. That works for a lot of situations; just make what you want to avoid a sprite. If you want to avoid collisions with the background then you need to get into color sensing. I've seens some very sophisticated systems used on some of the platform games with a separate invisible sprite using color sensing used to avoid walls and such.
Maybe if you can be a bit more specific about what your application is, I (and others) can recommend some good sample projects.
Offline
You could put that if it's touching a sprite or color, it moves its x or y by 2, or -2. Look at my game Ninja Panda Collision Practie, download, and see what I mean (i thik i used 10)
Offline
Thanks ill try it
Offline