0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

バグ・クイズ

Last updated at Posted at 2017-06-06

バグが取れた。

クイズを1問。

クイズ

地面に当たり判定を付けました。

20170606a3.gif

ところが このプレイヤーくんは 地面の中に引っかかりました。
何が起こったのでしょうか?

答えは 10個のヒントのあと。

ヒント1

地形は、マップタイルになっている。

ヒント2

当たり判定は、地面の緑色の部分に設定した。

ヒント3

プレイヤーくんはゲーム開始直後、前方に移動しようとした。

ヒント4

地面の黄色いところに当たり判定は付いていない。

ヒント5

背景の山にも もちろん当たり判定は付いていない。

ヒント6

地面の底のマップタイルにも 当たり判定は付いていない。

ヒント7

紺色の何もないところにも 当たり判定は設定していない。

ヒント8

ゲームが始まるとき、タイルが敷き詰められる。

ヒント9

何もないところのタイルには 画像を設定しない。

ヒント10

地面の緑色以外の画像が設定されたタイルは、当たり判定(ボックスコライダー)をオフ(enable=false)にした。

答え

20170607a6.gif






画像が設定されていないタイルは、当たり判定(ボックスコライダー)が初期値のまま オン(enable=true)になっている。

ゲーム開始直後、空間に当たって跳ね返り 地面の中に 落ちた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?