The Daily Click ::. Forums ::. Klik Coding Help ::. Help With Mouse Aiming
 

Post Reply  Post Oekaki 
 

Posted By Message

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
4th July, 2005 at 07:13:29 -

Ok guy's Here I am again...

I've been working on some of my Shooting games (I'm working on looooooots of games at once!! ) and am quite satisfied with what I see... but ... after playing Seek & Dread online, for a few hours I fell in love with the mouse aiming...

My usual mouse aiming is (the crossair can go anywere on the map, and the gun always follows it arround... What I want to do is to limit the crossair to just movi around a certain space around the player... (like in S'n'D).

Can someone help me?

THANX

 
Profile edited as it messed the layout of the site up.

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
4th July, 2005 at 07:47:24 -

If you want the crosshair to move around the player like that, dont use the mouse, its annoying

 
n/a

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
4th July, 2005 at 09:33:28 -

yes

 
n/a

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
4th July, 2005 at 10:07:43 -

I hate that control scheme, makes aiming so much harder. But if you still want to know how it has to do with cos\sin

x=x+cos(angle)*20
y=y-sin(angle)*20

Sorry for the short reply, I've got to go out

 
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

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
4th July, 2005 at 12:04:01 -

Thanx, I think I'm not gonna use it anyway

since you guys don't like it very much!



By the way... Andy ... could you explain that again?
It's not very clear.

THANX

Image Edited by the Author.

 
Profile edited as it messed the layout of the site up.

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
4th July, 2005 at 13:03:55 -

x coordinate of crosshair = x coordinate of player + cos(angle) * 20
y coordinate of crosshair = y coordinate of player - sin(angle) * 20

when you want to rotate the croshair, change the angle. Change the 20 at the end to the distance you want the crosshair to be from the player

 
n/a

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
4th July, 2005 at 14:39:16 -

But, is it in an "Always" sentence or what?

 
Profile edited as it messed the layout of the site up.

gamerdudetom



Registered
  10/07/2005
Points
  18
10th July, 2005 at 22:35:40 -

Does that work with TGF?
I was thinking of the same idea myself, without using a crosshair. *Shrug*

 
Dog Games:
http://dginteractive.tripod.com

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
11th July, 2005 at 00:08:01 -

Yes, but you'll need the Advanced Math object: http://www.clickteam.info/extensions/extview.php?id=37

 
http://www.klik-me.com

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
11th July, 2005 at 01:00:37 -

it's an always

 
n/a

gamerdudetom



Registered
  10/07/2005
Points
  18
13th July, 2005 at 00:16:39 -

Are there any others that are royalty free?

 
Dog Games:
http://dginteractive.tripod.com
   

Post Reply



 



Advertisement

Worth A Click