The Daily Click ::. Forums ::. Klik Coding Help ::. How do i get the Direction of a mouse controlled object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
1st July, 2003 at 02:29:10 -

How do i get the Direction of a mouse controlled object?
Either on actual mouse movment or setting position to the mouse cursor.

Thanks,

 

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
1st July, 2003 at 03:45:58 -

Ok, there is a tut about it somewhere. I know it's on my harddrive but search CT forums, because that's where i got it. I think it has lots of maths and counters though. There is also a mouse roll speed checker.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Joshtek

Administrator
The Archivist

Registered
  02/01/2002
Points
  3841

Game of the Week WinnerHas Donated, Thank You!Mr BallPicture Me This Round 50 Winner!
1st July, 2003 at 05:57:45 -

I'd make it check the position after you've moved it, and see how much up and left you'd moved it, then you can somehow turn that into a direction (easiest way is the make an object and then another, with those offsets, make one look at another and check the direction...or something - but ofcourse maths could probbably do it better).

I might be 100% wrong, but that's what I'd try

 
:: Joshtek ::


Oreos? GO! OREOS!

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
1st July, 2003 at 08:06:51 -

I got that tutorial, thanks heaps Assault. But I actually do need a mouse speed tutorial also. I couldn't it at clickteam.

 

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
1st July, 2003 at 08:18:07 -

buster its easy... you just have to check how long the distance is that you have rolled the mouse

 
Beware of life ...so far noone have survived it.......

Buster

BLING COMMANDER

Registered
  03/06/2002
Points
  1545

VIP Member
1st July, 2003 at 20:32:14 -

Well, that only kind of half worked.

 
   

Post Reply



 



Advertisement

Worth A Click