TNT Basic Forums > Programming Q&A
Risk game
< Last Thread     Next Thread >
Thread        Post A Reply

12-16-2004 16:17

Posted by:
Stephen Lund

Michigan USA

Click Here to Email Stephen Lund   Find more posts by Stephen Lund

Hi everyone,

I'm working on a risk game and I made each country a sprite but to make it so if you click on a country and then click on the one that you want to fight to. to do that do I have to make each country a button, or is there a diffrent way to do it,


12-16-2004 20:03

Posted by:

Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

no its ok with sprites: what you need to do is create a small 1*1pixels "sprite" with position mousex and mousey, and then when the user clicks the mouse check collisions between the 1*1 sprite and the "country" sprites.

12-17-2004 11:54

Posted by:

Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Or, use a sprite as a custom cursor and do the same. You probably want one anyway.

12-19-2004 20:07

Posted by:


Find more posts by kemalyun


I think buttons work better since you can make the country change it's color or get highlighted when the cursor is over it. You can make the troups in the country sprites.

06-29-2005 08:07

Posted by:


Click Here to Email mikake   Find more posts by mikake

no,buttons can't be a solution because a button must be a rectangle,and countries are more complex!
then you must use sprites!

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.