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 have a basic prototype working with health, resources and units. The problem is: How do I select multiple units? I have an idea of making an rectangle which dynamically extends with the mouse position. I think I need to convert this rectangle to transparent rectangle.

share|improve this question
up vote 3 down vote accepted

pygame.draw.rect should be enough to draw transparent rectangles, according to documentation if you use width > 0, then the rectangle won't be filled.

share|improve this answer
thanks buddy ... Its worked perfectly...... Anyone know easy implementation of a* Algorithm in RTS....Coz unit intersect with other unit and building....I think implementing a* would we so confusing,,,,,, – piyush_dev Oct 30 '12 at 14:33
@piyush3dxyz It's not the idea you stack up questions one after the other. Threads are just that they handle one question and if you're satisfied with the answer given you mark them so that your question is solved. As for your A* first do some own research. If you can't figure it out post a new question. Search if the question is already asked though. – Sidar Oct 30 '12 at 15:01
ok i got it.... – piyush_dev Oct 31 '12 at 13:41

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.