Ambrosia Garden Archive
    • Rate-of-Fire


      How do you control the rate-of-fire of a ranged weapon? Right now, if I click on an enemy, it fires a line of bullets with no space between them. How can I fix this?

      ------------------
      They say money can't buy happiness, but it's not happiness I want. It's money. -Zippy

    • Quote

      Originally posted by Turtlehunter:
      How can I fix this?

      How do you have your weapon set up? Usually with a ranged weapon (i.e. bow) you get one arrow per click or one per tap of the X key. Is this a machine gun you have just built? I don't think we can help until we know what you did in the building of this weapon. And when you examine what was done, perhaps the solution will become evident.

      ------------------
      My Doctor said I was having too much wine, women, and song - so I gave up singing because 2 out of 3 is not so bad.
      The (url="http://"http://www.evula.org/rduck/")Kingdom of Garendall(/url) sectional map is easily printed from gif format pages.
      (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/damsels.sit?path=pog/addons&file;=damselsV1.1.sit")Damsels in Distress(/url) - A plugin for PoG. (url="http://"http://www.evula.org/rduck/RD-DEL.jpg")RD-DEL(/url)

    • Sorry about that. The character model is made up of 8 directional still pictures. There is no separate attack animation. For the weapon, it is a ranged weapon with a bullet from caster to target 360° animation. When you attack an enemy, you can type x(1 shot), click on the enemy(1 shot) or click on the enemy and hold down(a steady stream of shots. There is no delay between each firing. Also, you can rapidly type x to rapidly fire a large number of them. What I specifically want to do is put a required delay in, so no matter what you click to fire them, the rate-of-fire is limited.

      ------------------
      They say money can't buy happiness, but it's not happiness I want. It's money. -Zippy

    • A couple of things come to mind. Is your animation looped? If so, consider taking the loop flag off. This will then allow one shot per click or key tap. If you want the weapon to continue to fire, but just not so rapidly, then you want to place some blank (pure white) frames at the end of the animation. This will cause the action to pause before it recycles. I hope one of those solutions works for you.

      ------------------
      My Doctor said I was having too much wine, women, and song - so I gave up singing because 2 out of 3 is not so bad.
      The (url="http://"http://www.evula.org/rduck/")Kingdom of Garendall(/url) sectional map is easily printed from gif format pages.
      (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/damsels.sit?path=pog/addons&file;=damselsV1.1.sit")Damsels in Distress(/url) - A plugin for PoG. (url="http://"http://www.evula.org/rduck/RD-DEL.jpg")RD-DEL(/url)

    • It all has to do with your animation. You say that you have no attack animations, if I am reading correctly. This means that it will fire as fast as you can click/tap the X key. What you want is an attack animation that will play exactly how long you want the pause to be. The bullet fires at the first frame, by the way.

      ------------------
      "Stiney! Get me a danish!"
      Check out teh 1337 sig: (url="http://"http://img.villagephotos.com/p/2003-10/417243/Ogre_Bobfinal.jpg")Teh 1337 sig(/url)

    • Thanks for the advice. What I ended up doing is putting a frame delay on the attack. That caused a pause between attacks. Now I'm set.

      ------------------
      They say money can't buy happiness, but it's not happiness I want. It's money. -Zippy