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

#1 2013-04-17 08:20:04

GuyWithNoHead
New Scratcher
Registered: 2013-04-17
Posts: 1

Bopping Game- How would I make a hammer 'bop' someone?

I need help with my game where you have to bop the figures as the appear. I have made the hammer 'go to the mouse pointer' but I don't know how to make the hammer bop someone by clicking the mouse. How would I do that?

Offline

 

#2 2013-04-17 11:14:19

cobraguy
Scratcher
Registered: 2009-11-18
Posts: 100+

Re: Bopping Game- How would I make a hammer 'bop' someone?

Do you mean, how to make someone get "bopped" when you click the mouse? If so,

repeat until <(time left) = [0]>
if <touching [hammer v]?>
if <mouse down?>
script go here
end
end
Or you could maybe you could use
repeat until <(time left) = [0]>
if <<touching [hammer v]?> and <mouse down?>>
scripts go here
end
end
I have a game that does what I think you want your project to do. You can download it and take a look at the scripts. Here it is

Last edited by cobraguy (2013-04-17 11:20:08)


Fruit Fighter, when your food eats you.
http://i.imgur.com/8CR6Lnj.png?1

Offline

 

Board footer