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

#1 2010-01-22 13:35:26

jamestkirk
Scratcher
Registered: 2009-05-09
Posts: 2

How do I make the gun stay in the persons hand?

I am making a game, and I have already put in the programming stuff for walking and jumping.  Then I put in what it said on "How you make a gun" but it isn't working because if my person moves then the gun doesn't move with him.  Anyway to keep the gun attached to his hand?  Thanks in advance.

Offline

 

#2 2010-01-22 17:13:00

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: How do I make the gun stay in the persons hand?

do <set x to( x position of sprite guy)
And if the gun is in a weird position then change the rotation center in the paint editor.

Last edited by sccar3 (2010-01-22 17:14:20)


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#3 2010-01-22 17:18:45

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: How do I make the gun stay in the persons hand?

Use the go to block. Like this:

<when flag clicked>
[forever]
[][go to [player]]
[][][][][[][][][]
under the go to player script, you can use change x and change y to adjust the gun's position.

Last edited by fg123 (2010-01-22 17:18:55)


Hai.

Offline

 

Board footer