Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I Want To Create A Game, But.....
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00649132
Message ID:
00708634
Vues:
9
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform