配列は格納する数字を変えることで簡単に初期化できます。 連番なので、ループととても相性がいいのです。 array is changing index number for change memory ranges. those indexes are continue number...
習い事
不具合の調査をするとき、 もともとの条件がおかしいこともあります。 基準となる条件を再度確認してみましょう。 if you check bug of programing codes, may base codes has earth code. that...
隠しているスプライトに向かって向かうようにすることにより 何かに集まっているように見せる処理が書けます。 You can program the hidden sprite to attract others, creating the appearance that they...
同じスプライトで違う動きをさせる場合、 切り替えるタイミングで変数をキーに使うと うまく連携が取れます。 if you use same sprite,you better use variables when switch sprites. 次回 出屋敷教室 03月22日...
当たり判定の処理で悩むところが 不等式部分。 よくこの判定を間違えて誤動作します。 図に書いてイメージをしっかり持つとやりやすいですね。 you should make collision process in inequality. i often mistake that process.you should...
自分自身をクローンさせて 移動をすると連なった絵を作ることができます。 つながったものを長く見せると、蛇のような表現ができますね。 making clone sprite itself and moving that you can see long sprite shape....
引き算をすることで座標の差がわかります。 つまり、ずらして表示することができるということになります。 if you use subtraction,you know difference of cordinate.in other words you move sprites. 次回 出屋敷教室 02月22日...
当たり判定の処理は とても複雑ですが、 一つ一つの処理は単純なものが組み合わされています。 hit box processing is very complicated. but they are combined a lot of...
定義ブロックを使うことで 同じコードを何度も書かなくてよくなります。 設定はちょっとだけ面倒ですが、 プログラムの発想は身に付きますね。 if you should use “make a block function” you do not need...
回転処理で座標を制御するには 三角関数がとても役に立ちます。 角度から座標に変換する処理は慣れるまで大変です。 trigonometric functions is useful for rotate process control. angle conversion for cordinate process...