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

#1 2011-10-10 11:15:15

rojasscratches
Scratcher
Registered: 2011-06-01
Posts: 59

how do you change the direction weapon faces to face same way as dude

i know this seems like a easy topic but i currently have a sword that changes the angle of it when you attack since the sword-bearer and the sword are two different sprite and can't be combined due two programming of everything else  hmm

Last edited by rojasscratches (2011-10-10 11:16:10)


smile   neutral   sad   big_smile   yikes   wink   hmm   tongue   lol   mad   roll   cool  cool  Scratch Home Page  cool

Offline

 

#2 2011-10-10 11:40:45

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how do you change the direction weapon faces to face same way as dude

That depends on how the sword needs to move. If it doesn't have to rotate, and only face in the same direction as the player, (left/right), then you can have a script that has it point in the same direction as the character and set it to only face left or right with this button in the sprite options box:
http://ponypic.com/i/nHd8.png

Otherwise, you should make two costumes, one left and one right, that it switches to depending on the direction of the character.

Hope that helps!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2012-01-28 17:37:20

KPX
Scratcher
Registered: 2011-10-03
Posts: 13

Re: how do you change the direction weapon faces to face same way as dude

Could you upload it. If you want the sword to face in the same direction of the player
when green flag clicked
forever
point towards [direction of player]

SPECIAL PROTIP PRESS CTRL+U WHEN TYPING


[this message is censored by SOPA]

Offline

 

#4 2012-01-28 18:39:39

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: how do you change the direction weapon faces to face same way as dude

KPX wrote:

Could you upload it. If you want the sword to face in the same direction of the player
when green flag clicked
forever
point towards [direction of player]

SPECIAL PROTIP PRESS CTRL+U WHEN TYPING

Please, don't necropost...


Why

Offline

 

Board footer