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

#1 2012-09-20 21:54:29

Teraflare
New Scratcher
Registered: 2012-09-20
Posts: 1

Help with sprites carrying objects around and throwing it?

So, I have this scratch project where the character needs to carry an object and throw it in a platform, but I'm having trouble - I can make the character carry the object around by using forever go to character1, but because of this I'm unable to throw the object away because it keeps coming back to the character ): This might be a stupid question, but it's really bothering me, and I'd be glad if anyone could help me.

Offline

 

#2 2012-09-20 22:12:06

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Help with sprites carrying objects around and throwing it?

when i receive [pick up v]
set [pick up v] to (1)
forever
if <(pick up) = (1)>
go to [character v]
when [a v] key pressed
set [pick up v] to (0)
repeat (10)
change x by (2)
change y by (3)
when [space v] key pressed
if <touching [object v]?>
set [pick up v] to (0)
broadcast [pick up v]

Last edited by bullelk12 (2012-09-20 22:16:28)


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

Board footer