Skip to content
Noxalus edited this page Jul 1, 2017 · 6 revisions

It's not possible to create an issue on a fork, and some issues might be related to this fork only, so I prefer to have a page for that.

Give a variable as a parameter of an actionRef doesn't seem to work

Example:

<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

  <action label="top">
    <fire>
      <bulletRef label="bullet-A">
        <param>1</param>
      </bulletRef>
    </fire>
  </action>

  <bullet label="bullet-A">
    <direction type="absolute">0</direction>
    <speed>$1</speed>
    <actionRef label="A">
      <param>$1</param>
    </actionRef>
  </bullet>

  <action label="A">
    <wait>80 / $1</wait>
    <changeDirection>
      <direction type="relative">180</direction>
      <term>100 / $1</term>
    </changeDirection>
    <wait>125 / $1</wait>
    <changeDirection>
      <direction type="relative">90</direction>
      <term>0</term>
    </changeDirection>
    <wait>60 / $1</wait>
    <changeDirection>
      <direction type="relative">180</direction>
      <term>0</term>
    </changeDirection>
    <wait>60 / $1</wait>
    <changeDirection>
      <direction type="relative">90</direction>
      <term>0</term>
    </changeDirection>
    <wait>50 / $1</wait>
    <changeSpeed>
      <speed>0</speed>
      <term>0</term>
    </changeSpeed>
  </action>
</bulletml>

Sequence type direction issue with child <fire> tag located into <action> tag (from a <bullet> tag)

<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "bulletml.dtd">
<bulletml>
  <action label="top">
    <repeat>
      <times>8</times>
      <action>
        <fire>
          <bullet>
            <direction type="sequence">45</direction>
            <speed>10</speed>
            <action>
              <changeDirection>
                <direction type="relative">36</direction>
                <term>100</term>
              </changeDirection>
              <wait>100</wait>
              <vanish />
              <fire> <!-- <-- Remove this <fire> will make the script work as expected -->
                <bullet />
              </fire>
            </action>
          </bullet>
        </fire>
      </action>
    </repeat>
  </action>
</bulletml>
Clone this wiki locally