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

#1 2013-04-29 18:29:32

NooblyTehNoob123
New Scratcher
Registered: 2012-12-08
Posts: 9

Noobly question

basically i want a gun to move with the players sprite, but i want it to move on the players hand, and the gun always goes to the center of the player. i really do not feel like fiddling for hour right now so i thought i would ask.

Offline

 

#2 2013-04-29 19:16:19

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Noobly question

Okay, so you want the gun to go to the player, right? Question, this is over head i assume?

Okay, so here it goes,

In your gun put:


when gf clicked
forever 
go to [player v]
point in direction < [direction v] of [player v] >
end
Regards,

CAA14

Last edited by CAA14 (2013-04-29 20:44:21)

Offline

 

#3 2013-04-29 20:16:24

NooblyTehNoob123
New Scratcher
Registered: 2012-12-08
Posts: 9

Re: Noobly question

Umm first of all it's not over haed, it's third person, second i cant put go to gun inside my gun?

Offline

 

#4 2013-04-29 20:44:55

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Noobly question

What are you talking about go to gun gun? JK, i fixed that.

Second, that should still work.

Regards,

CAA14

Offline

 

#5 2013-04-29 20:49:12

NooblyTehNoob123
New Scratcher
Registered: 2012-12-08
Posts: 9

Re: Noobly question

Still no, i figured it out thought. Thanks for trying!

Offline

 

#6 2013-04-30 11:16:49

Suparing01
New Scratcher
Registered: 2013-03-31
Posts: 49

Re: Noobly question

That one's easy!  smile

Just make him a costume with a gun in his hand, and anytime you want him to hold the gun, make him switch to the costume and go to wherever you want him to go :p

Offline

 

#7 2013-04-30 11:21:46

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Noobly question

Suparing01 wrote:

That one's easy!  smile

Just make him a costume with a gun in his hand, and anytime you want him to hold the gun, make him switch to the costume and go to wherever you want him to go :p

There's just a little problem with that... How will he turn unless its over head view? (Which it isn't,)

Also, you would need to specify the coordinates for where the gun is on the character for this to work.

Regards,

CAA14

Offline

 

Board footer