Loading ...
Sorry, an error occurred while loading the content.
 

Basketball game plan: howto use the original coordination system

Expand Messages
  • Arjen
    Greetings from Holland, I am making a basketball game plan in SVG. See http://b.alforto.nl/tweedrieaanval.html for the svg file. In Opera you can click on
    Message 1 of 1 , Oct 9, 2010
      Greetings from Holland,

      I am making a basketball game plan in SVG.
      See http://b.alforto.nl/tweedrieaanval.html for the svg file.
      In Opera you can click on basketball and an animation is started.

      All works very well, but ...I cannot get the players to run the correct path, because each player has its own coordination system.

      How can I go back to the coordination system of the original basketball field?

      I use a path player 3 should run on the coordination system of basketball field:
      <path id="p3" ... d="m 350,351 c 0,0 54,56 90,61 65,9 138,-21 187,-65 46,-42 79,-169 79,-169 l -2,2" />
      I place and animate player 3 with this code:
      <g id="s3">
      <use xlink:href="spelers.svg#speler3" x="300" y="300" />
      <animateMotion begin="bal.click+10s" dur="3s" fill="freeze" rotate="auto"> <mpath xlink:href="#p3" />
      </animateMotion>
      </g>
      The problem is that the path is mapped to the settings of player 3 and not of the underlaying basketball field. How can I reset the coordination system of player 3?

      Arjen
    Your message has been successfully submitted and would be delivered to recipients shortly.