teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

文章を修正中

2021/04/15 12:41

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -71,8 +71,8 @@
71
71
  //斜め移動
72
72
  if (ud == true && rl == true)
73
73
  {
74
- playerPosition.x += speed.x / 0.70710678118;
74
+ playerPosition.x += speed.x * 0.70710678118;
75
- playerPosition.y += speed.y / 0.70710678118;
75
+ playerPosition.y += speed.y * 0.70710678118;
76
76
  }
77
77
  else {
78
78
  //そうじゃないとき