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

#1 2013-01-05 21:02:26

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

How to add collision detection

Help!

My script so it would stay on the platform.

when gf clicked
forever
if <touching [Sprite4 v]?>
change y by (5)
end
if <not <touching [Sprite4 v]?>>
change y by (-5)
end
Will that script not work if I add collision detection so walls
wouldn't pass through?

Last edited by fetchydog567 (2013-01-05 21:02:46)


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#2 2013-01-06 06:08:11

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: How to add collision detection

No, that wont work, one of the best ways to do a simple collision detect is to use a sensor costume with 4 coloured sides, and make it change to that while it's detecting, then change back. it'll be going so fast you can't see it.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2013-01-06 16:35:38

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: How to add collision detection

zammer990 wrote:

No, that wont work, one of the best ways to do a simple collision detect is to use a sensor costume with 4 coloured sides, and make it change to that while it's detecting, then change back. it'll be going so fast you can't see it.

Thanks


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#4 2013-01-06 16:51:38

curiouscrab
Scratcher
Registered: 2012-06-25
Posts: 100+

Re: How to add collision detection

Admins can close this topic now.


http://i50.tinypic.com/dopbtw.png

Offline

 

#5 2013-01-06 17:44:02

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How to add collision detection

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer