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
  2722
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
  2722
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

Rycon



Registered
  20/09/2002
Points
  996
2nd July, 2003 at 18:44:44 -

Or.. you could always jerry rig it. If you make a big DOME shaped active object, make it invis. And then have the aimer outside the dome. If the aimer colides with the dome, it stops. And when player presses down, it adds to Y cord by 1. So it may slide down the dome, just make sure its very smooth. It sounds very unstable, but you could kinda work with the idea.

 
We are the music makers, we are the dreamers of dreams...

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
2nd July, 2003 at 18:57:50 -

(Pirate Sound) Aaaaargh, maths would be the way to do everything aaaaaargh! There was an example on this, but its just what Santa said, Maths!

-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

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
2nd July, 2003 at 18:57:51 -

(Pirate Sound) Aaaaargh, maths would be the way to do everything aaaaaargh! There was an example on this, but its just what Santa said, Maths!

-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

pr0



Registered
  26/02/2003
Points
  1375
3rd July, 2003 at 00:28:48 -

math is the way to go now.

 
flipteam

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
3rd July, 2003 at 03:57:44 -

LOL! are you all stupid and always do it the hard way!? just put the hotspot of the crosshair 50(distance between crosshair and the char.) pixels to the left then go out of the picture editor and hit the rotate button. now you should have 32 directions of the object. then make the crosshair have racecar movement with NO speed. Now make an always event that sets the position of the crosshair to the same position as the char. ...NOW, YOU, ARE, DONE!X)

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

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
3rd July, 2003 at 04:32:28 -

That's clever until you realize you've only got 32 directions to work with - with the Maths object you can aim far more accurately.

 
http://www.davidn.co.nr - Games, music, living in America

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
3rd July, 2003 at 05:15:57 -

Yea Dan, that's not a very good way to do it. Maths is the way to go. You can have 360 angles and more if you then times that to get 3600, then even more! So basically you can have unlimted angles with maths. Click products alone - 32. I hope MMF 2 has more though .

-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
3rd July, 2003 at 11:07:26 -

Thanks everyone (especially Santa).

 
http://www.klik-me.com

Rycon



Registered
  20/09/2002
Points
  996
4th July, 2003 at 22:59:29 -

Even though you can get that many angles with math, can you even shoot an object that many angles in TGF?

I agree with Daniel's way, only cause its simple and works with TGF without the Cos and Sin. (Dunno bout math object) The math would be well worth it if you had mmf, and it served its purpose better in its situation. Some situations, just dont need that many angles. I dunno, probly need more info before deciding wich is more effective and worth it.

 
We are the music makers, we are the dreamers of dreams...

RailedRobin



Registered
  05/04/2009
Points
  1

I am an April Fool
22nd April, 2009 at 14:24:08 -

Could someone please post an example of this? I've tried to do it like SAnTA says, but I can't get it to move, only stay static.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click