[過去ログ] 【ゲームエンジン】Unity初心者質問スレBuild1 (1002レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
463: 2018/08/24(金)12:10 ID:4yphetVh(1/4) AAS
void Update()
{
Vector3 prePosition = transform.position;

this.transform.position = Vector2.MoveTowards(this.transform.position, new Vector2(Player.transform.position.x, Player.transform.position.y), Speed * Time.deltaTime);

if(transform.position.x - prePosition.x >= 0){
transform.localScale.x = 1;
}else{
省5
464: 2018/08/24(金)12:24 ID:4yphetVh(2/4) AAS
すまん横着した
こっちで

void Update()
{
Vector3 prePosition = transform.position;

this.transform.position = Vector2.MoveTowards(this.transform.position, new Vector2(Player.transform.position.x, Player.transform.position.y), Speed * Time.deltaTime);

Vector3 scale = transform.localScale;
省7
465
(1): 2018/08/24(金)12:25 ID:4yphetVh(3/4) AAS
スペルミスってるw
もうだめだw
467
(1): 2018/08/24(金)13:27 ID:4yphetVh(4/4) AAS
>>466
かなり当てずっぽうで書いたところはあるが…
まあできたのなら…

個人的にはscaleを1倍固定にしてるのが後々問題になりそうな気がするが
そのときはそのときで…
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.030s