プレイ日記
Chickens32 Chickens32
How do I make sword swinging. ex: mining in miner life, sword in Cave island. I want to the character to use a sword.
2そうだね
プレイ済み
返信[1]
親投稿
Zee Storybookten9
I'm not going to tell you exactly because I think you'd learn better if I told you how to do it rather than giving you how to do it. First, you are going to want the origin (home) of the sprite to be where you want it to swing (8,16 is generally good for a sword). Then you need to move the sword to the location where the character would be holding it (hand). Then animate the sword to rotate.
0そうだね
プレイ済み
返信[2]
親投稿
PChicken NerdChicken
sprot, splink, sphome
0そうだね
プレイ済み
返信[3]
親投稿
Zee Storybookten9
I wouldn't use SPROT for this, I'd probably do SPANIM. As well, I'd probably recommend just doing SPOFS instead of SPLINK because SPLINK is horrible if you want to expand the code any further than swinging.
0そうだね
プレイ済み
返信[4]
親投稿
Chickens32 Chickens32
Yeah, I already know that, I just want to know how to make it so that when the circle pad is on the left, the sword swings left, and vice-versa
0そうだね
プレイ済み
返信[5]
親投稿
PChicken NerdChicken
stick out sx,sy if sx < -0.7 then swingy endif
0そうだね
プレイ済み