>I'm thinking of creating a game.
>
>This game will have a map of the United States.
>
>I need to determine which state the user clicked in.
>
>Any ideas?
As Nick said, you can use:
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
*
End Sub
to do, but what I have to mention:
VB form unit is
Twip, it is different unit from VFP
pixel....
Thus, you need to re-study the map position before code.
Currently, I starting to make a game of chess board..
already success on drag-n-drop to right "drop-off" position
but I got problem on put at exact position with check that position
that there is an another piece exist.
if same color, ignore the move.
if diff color, "eat" it.
Since the user may drag at chessboard, NOT the other piece..
Need think more to take the piece out.. >.<
What I agree as VB is common to disturb as VB run-time lib is easy to d/l on web...
whereas VFP doesn't.
Therefore, to make a game, select VB or VC to do for increasing more ppl to enjoy it.
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.