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

#1 2012-04-26 08:53:07

suma1234
New Scratcher
Registered: 2012-03-26
Posts: 13

how to make a sprite touch another.

i tried so many scripts but i am not getting how to make a sprite touch another.

Offline

 

#2 2012-04-26 09:18:09

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: how to make a sprite touch another.

here is a script for collision detection

when gf clicked
forever if <touching [sprite1 v] ?>
do somthing
and here is one for another sprite to touch another

when gf clicked
forever
point towards [sprite1 v]
move [somthing] steps

Last edited by ftf841 (2012-04-26 09:21:00)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#3 2012-04-26 09:57:31

COASTERBOY246
New Scratcher
Registered: 2012-03-06
Posts: 3

Re: how to make a sprite touch another.

Ya, Can Someone Help Me?

Offline

 

#4 2012-04-26 20:37:29

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: how to make a sprite touch another.

[scratchblocks]
go to [wanted sprite v]
[/scracthblocks]

/\WUTS WITH DA BBCODE?


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#5 2012-04-26 21:12:44

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: how to make a sprite touch another.

You put in [/scracthblocks] I don't get it though. Please explain.

Last edited by ImagineIt (2012-04-26 21:13:05)

Offline

 

#6 2012-04-28 05:51:46

Tbtemplex97
Scratcher
Registered: 2011-11-12
Posts: 100+

Re: how to make a sprite touch another.

when gf clicked
point towards [sprite1]
repeat [20]
move [10] steps
that should move U towards a sprite, and use a detection to make it do something.

Last edited by Tbtemplex97 (2012-04-28 05:53:31)


Online Status: http://blocks.scratchr.org/API.php?action=onlineStatus&amp;user=Tbtemplex97
Darkspace Coming Soon!, Try the Singleplayer Demo

Offline

 

#7 2012-05-04 19:38:11

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: how to make a sprite touch another.

James07 wrote:

go to [wanted sprite v]
/\WUTS WITH DA BBCODE?

you spelled scratch wrong


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

Board footer