The Daily Click ::. Forums ::. Klik Coding Help ::. Making an aimer
 

Post Reply  Post Oekaki 
 

Posted By Message

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
26th June, 2003 at 12:09:58 -

Does anyone have any good aimer tutorials? I can't seem to make an aimer that spreads out far enough from the player.

 
http://www.klik-me.com

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
27th June, 2003 at 01:22:11 -

If the aimer is mouse controlled, just set the scrolling to the aimer. Then if you want 2 get tricky - have like a sniper view, so if the player is moving, scroll on the player. And if he's not, scroll on the aimer.

-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

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
27th June, 2003 at 15:17:56 -

No, I'm looking for a keyboard aimer system.

 
http://www.klik-me.com

somedude (Pkeod)



Registered
  23/09/2002
Points
  104
27th June, 2003 at 15:21:26 -

dude thats italic not bold...

 
What would you like with that sir?

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
27th June, 2003 at 15:40:58 -

Yea what he said... *looks around...

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
28th June, 2003 at 16:28:26 -

you mean like using z and x to rotate a cursor around character left and right respectively?

 
Craps, I'm an old man!

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
28th June, 2003 at 17:24:47 -

Of course I know that's not bold! this is!

Of course it's not bold! That's the whole point! bold


 
http://www.klik-me.com

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th June, 2003 at 17:42:59 -

Maybe you should explain more on how you want it moving

 
My signature is never too big!!!

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
29th June, 2003 at 07:07:42 -

create an active object for the aimer.
if using aim and pressed right, move aim right,
center screen position to aimer.
(left, up, down, etc..)

it comes down like this:

if using aim, do not do normal movement, but move aimer,
anyway you like to move it and center screen position to aimer.

 
Image jenswa.neocities.org

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
29th June, 2003 at 08:33:54 -

Are you thinking of an aimer like on worms

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
29th June, 2003 at 11:26:09 -

Yeah, and aimer like worms is what I'm looking for. Another example would be the one in Dark War II, except that it would be able to do a full 360 rotation.
Shab: use z? I should explain that I'm using MMF and therefore I have no "z" value.

 
http://www.klik-me.com

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
29th June, 2003 at 12:48:18 -

I meant the keys on the keyboard, sorry traditional japanese control scheme's (I was born in the wrong country). But yeah here, I'll text draw it (lucky you)

Normal-
* Crosshair

O Character
presses Z
* Crosshair

O Character
presses Z some more

*
O
------------
See? the crosshair is rotating around the character using the Z and X keys to control it.
Is that a little clearer?

 
Craps, I'm an old man!

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
29th June, 2003 at 13:26:57 -

So you want to rotate the crosshair around the character.

I don't know the code for it, but with the
advanced math object, you can create a circle like
movemnt with increasing and decreasing angle.
You even can go 360 degrees.

In order to understand this you need to know some
trigonomitry.

 
Image jenswa.neocities.org

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
29th June, 2003 at 13:34:02 -

Wow, text drawings look like total shite in the forums...

 
Craps, I'm an old man!

Santa



Registered
  19/05/2003
Points
  644
2nd July, 2003 at 14:53:41 -

Making a aimer move round a player is easy. TO work out a point on a circle use this formula:

new_x_cordinate = Start_X_Co-ordinate + cos(angle) * radius
new_y_cordinate = Start_y_Co-ordinate + sin(angle) * radius

in this case the start X and Y co-ordinate would be the players co-ordinates and angle would be added to or subtracted from based upon the user pressing up or down or what ever keys you choose and the radius would be a distance of how far you want the aimer from the player.

I believe you need the advanced math object for TGF to use sin and cos but i aint sure, but you can do this in MMF withough it.

Need anymore help give me a shout.

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918
   

Post Reply



 



Advertisement

Worth A Click