Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating game like bow and arrow. I want my hero will shoot the arrow with the strength meter, how will create the power?

share|improve this question
Are you asking how to tie power to how far the arrow goes, or are you asking how to represent the power on screen? – Tetrad Jan 13 '13 at 7:38
I am asking how to epresent the power on screen o user can think how far the arrow goes. – jubin Jan 15 '13 at 2:46
up vote 1 down vote accepted

The meter is simply a visual indicator of the amount of force that will be applied to the arrow when the bow is released. How you display that number is going to be specific to the style of your game and what you're using for the GUI.

Choosing the amount of force will also be dependent on how you want the game to work. A simple method would be to slowly increase a value to the maximum amount, as long as the user holds the fire key. When the fire key is released, the value generated is used and applied to the arrow as a force in the direction the arrow is pointing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.