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


Registered: 12/20/06
Posts: 615
Loc: England, UK
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: 615
Loc: England, UK
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: 2624
Loc: Ashland, 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
Clickteam


Registered: 06/30/06
Posts: 5112
Loc: UK
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

Click Convention 2010 - FusionWiki - Roundtable

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


Registered: 07/11/06
Posts: 2624
Loc: Ashland, 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 249
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 249
Community Links
Fusion Wiki
MFA Repository
Klikdisc
The Daily Click
GameBuilder

GB Arcade
TDC Arcade
Madword

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm

Money from your games
Click Chat
9 People are chatting
Game Builder

Visit the GameBuilder Homepage

Recent Download

Puzzle Palette

Latest News