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

#1 2012-08-13 22:08:09

Ep1cMarshmallow
New Scratcher
Registered: 2012-08-13
Posts: 17

Punching

Hi I'm new and working on a project and i was just wondering, I'm trying to make my guy punch and then have the sprite I punched move. I'm just trying to figure out how to do this I have a different costume with a different color in order to show the punch thanks.

Offline

 

#2 2012-08-13 22:20:25

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Punching

How about having the the punching sprite switch to a punching costume and then broadcast "punch" and have the other sprite receive "punch" and be moved back.

Last edited by CheeseMunchy (2012-08-13 22:22:27)


6418,

Offline

 

#3 2012-08-13 22:21:22

Ep1cMarshmallow
New Scratcher
Registered: 2012-08-13
Posts: 17

Re: Punching

Ok i will try that.

Offline

 

#4 2012-08-13 22:29:15

Ep1cMarshmallow
New Scratcher
Registered: 2012-08-13
Posts: 17

Re: Punching

Sorry I should have been more specific I have multiple sprites that can get punched and I want only ones close to my main sprite to be affected.

Offline

 

#5 2012-08-13 22:33:55

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: Punching

Ep1cMarshmallow wrote:

Sorry I should have been more specific I have multiple sprites that can get punched and I want only ones close to my main sprite to be affected.

when I receive [punch v]
if <touching [player v]?>
whatever your moving-back script is
end

Last edited by videogame9 (2012-08-13 22:37:53)


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#6 2012-08-13 22:40:40

Ep1cMarshmallow
New Scratcher
Registered: 2012-08-13
Posts: 17

Re: Punching

Thanks that worked. I'll obviously have to tweek the numbers though.

Offline

 

Board footer