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

#1 2010-08-03 18:39:35

ApplePiePeasant
New Scratcher
Registered: 2010-08-02
Posts: 10

Blocks of Code needed!

I need a block of code to make a bullet fire towards mouse pointer when mouse down.
Also, some suggestions on making customizable outfits. Finally, I have a game controlled with aswd and the character points toward mouse. Can I make  weapon as an alternate sprite and have it stay in his hands, moving when he moves? If so, how please.  smile

Offline

 

#2 2010-08-03 19:29:10

Aidan
Scratcher
Registered: 2007-06-15
Posts: 1000+

Re: Blocks of Code needed!

Hmm. Take a look at this project. It has a lot of the stuff you need. Hope this helps.  smile

Offline

 

#3 2010-08-04 18:57:47

ApplePiePeasant
New Scratcher
Registered: 2010-08-02
Posts: 10

Re: Blocks of Code needed!

Thanks  wink

Offline

 

#4 2010-08-04 19:00:34

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Blocks of Code needed!

For the weapon being a different sprite, I always set the costume center of the sprite to where you want the gun, and set the gun to forever go to the sprite.


http://i45.tinypic.com/35m4llw.gif

Offline

 

#5 2010-08-04 19:31:25

ApplePiePeasant
New Scratcher
Registered: 2010-08-02
Posts: 10

Re: Blocks of Code needed!

hmm... what about 3d rotation, such as in a store and costume custumization?

Offline

 

Board footer