<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>werewolftan</author_name>
  <author_url>https://blog.hatena.ne.jp/werewolftan/</author_url>
  <blog_title>ツクールMZスクリプト備忘録</blog_title>
  <blog_url>https://werewolftan.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>8、9回で使ってきたものを合わせてランダムにジャンプする物体を作ります。 今回は「変数1」と「変数3」にそれぞれ乱数を代入してそれをそれぞれ「ジャンプのx方向」「ジャンプのy方向」に対応させます。 まず変数の代入ですがグローバル変数からsetValueを使います。$gameVariables.setValue(1,Math.floor(Math.random()*5)-2); コンソールで確認 同様に変数3にも代入します$gameVariables.setValue(3,Math.floor(Math.random()*5)-2); ツクール上に入力 またジャンプの実行にはイベントコマンドの移…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwerewolftan.hateblo.jp%2Fentry%2F2021%2F11%2F01%2F163341&quot; title=&quot;今日のツクールMZスクリプト【10】・変数代入と乱数からランダムジャンプ生成 - ツクールMZスクリプト備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/w/werewolftan/20211101/20211101162730.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-01 16:33:41</published>
  <title>今日のツクールMZスクリプト【10】・変数代入と乱数からランダムジャンプ生成</title>
  <type>rich</type>
  <url>https://werewolftan.hateblo.jp/entry/2021/11/01/163341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
