Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Detecting mouse move/mouse click on sprite/text


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Medo3337   Members   -  Reputation: 672

Like
0Likes
Like

Posted 02 June 2012 - 11:11 PM

In DirectX 9, how do I detect mouse move/mouse click on sprite and text?

I am trying to create game main menu.

Sponsor:

#2 Amr0   Members   -  Reputation: 1131

Like
0Likes
Like

Posted 03 June 2012 - 02:11 AM

You need to find the screen-space rectangle for the sprite/text and then check if the mouse is in that rectangle. Which of these two are you having trouble with?

#3 Medo3337   Members   -  Reputation: 672

Like
0Likes
Like

Posted 03 June 2012 - 04:24 AM

I am looking for an example how detecting mouse move and mouse click on both text and sprite.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS