Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

1 Answer 1

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,,,,,, –  piyush3dxyz Oct 30 '12 at 14:33
3  
@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.... –  piyush3dxyz Oct 31 '12 at 13:41

Your Answer

 
discard

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.