Topic Options
#164827 - 11/04/09 07:18 PM Mouse speed?
Adam


Registered: 12/20/06
Posts: 459
Good Morning.

I was just wondering, is there anyway of getting the speed of the mouse in MMF2 (HWA)? As in telling if it's moving fast or slow during runtime? I did a search but didn't find much.
Also a method that's reasonably simple? Someone has suggested comparing the position of the mouse, but he also said it would be quite tricky to do. frown

Adam
_________________________
www.Gamebuilder.info


Top
#164829 - 11/04/09 07:30 PM Re: Mouse speed? [Re: Adam]
Adam


Registered: 12/20/06
Posts: 459
Nevermind Jamie helped me \ smile /
_________________________
www.Gamebuilder.info


Top
#164835 - 11/04/09 08:10 PM Re: Mouse speed? [Re: Adam]
nivram


Registered: 07/11/06
Posts: 1545
Loc: Bandon, OR
Adam, can you share your solution? Thanks.

Marv
_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2examples.htm

Top
#164836 - 11/04/09 08:16 PM Re: Mouse speed? [Re: nivram]
Jamie


Registered: 06/30/06
Posts: 3750
Loc: England
Well, basically just calculate the difference between the last mouse position and the current one by storing the previous position and doing Abs(XMouse-PreviousXMouse). The difference can be used as a "speed".
_________________________
Jamie McLaughlin
Developer - AquadaSoft

Top
#164841 - 11/04/09 10:03 PM Re: Mouse speed? [Re: Jamie]
nivram


Registered: 07/11/06
Posts: 1545
Loc: Bandon, OR
Thanks for sharing Jamie.

Marv
_________________________
A decision making process is binary.

MMF2 Examples and games (open source).
http://www.castles-of-britain.com/mmf2examples.htm

Top


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum
Quick File Links
Multimedia Fusion 2
Updates - build 248
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 248
Community Links
MFA Repository
GameBuilder
Klikdisc
The Daily Click
Madword Arcade

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm
Click Chat
8 People are chatting
Game Builder
Latest Game

Wheel of Words

Latest News
Blue Friends 1.4!
GameBuilder Chat BETA!
PRC BETA IS OUT!