The Daily Click ::. Forums ::. Klik Coding Help ::. Moving in a specific direction?
 

Post Reply  Post Oekaki 
 

Posted By Message

Heart Break Kid



Registered
  13/05/2003
Points
  1754
13th May, 2006 at 08:01:07 -

Ok making few modifications in my Li-Trek engine ( powers Star Trek: Starship Legends ). How do i move my object in a specific direction ( 32 ). Like if my ship is looking at direction 13 then it keeps on moving in that direction , Without using any built in movements.

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
13th May, 2006 at 09:22:07 -

If you really don't want to use racecar movement or ball movement, use trig to do it yourself

 
n/a

Heart Break Kid



Registered
  13/05/2003
Points
  1754
13th May, 2006 at 09:36:41 -

i did an externally edited version of race car movement .. but if i set the direction of a player by codes , the built in movements gets messed up. Trig , how do i use it?

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

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
13th May, 2006 at 10:16:45 -

If you only need 32 directions, then why not just use built in movement?

 
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

Heart Break Kid



Registered
  13/05/2003
Points
  1754
13th May, 2006 at 19:11:45 -

my built in movements making the object look at direction # 16 .. When a condition is found true the object is supposed to look at direction 32 , and it does but when we try to move it .. then it first jumps back to direction # 16 and then continue its movements

thats why .. not the built in thing

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
14th May, 2006 at 14:17:39 -

Judging from your post, I take it you don't know what trigonometry is. Learn how to use Sin() and Cos(). I don't know how old you are, but it's quite difficult to understand if you're still young.

 
This space is for rent

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
14th May, 2006 at 16:02:25 -

He was 17 last week, now he's 'Kid!'.

 
n/a

Deleted User
14th May, 2006 at 16:26:23 -

Its pretty easy to do a 32-directions movement.
Just use X and Y positions and a couple of counters.
Ive done it,, but i dont have time to explain sorry....

 

Heart Break Kid



Registered
  13/05/2003
Points
  1754
14th May, 2006 at 18:44:29 -

lol well i do know what is trigonometry but i asked how do i use it for this thing?

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

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
14th May, 2006 at 20:08:08 -

Hey dude, I'd suggest a 360 engine for this game. It'd help quite a bit. If you can find snerlin's example pack, there's a couple of 360 examples in there that are really good.

 
Craps, I'm an old man!

Heart Break Kid



Registered
  13/05/2003
Points
  1754
12th June, 2006 at 19:32:53 -

Live Again!
No could'nt find a 'working' download link for that. Any alternates or something? Shab or Anybody?

Edit: ahh, found it! http://www.sitesled.com/members/neonair/Neonairklikexamples.zip

Some more edit: now whats this shit!
Image
don't try to compare so seriously.. did that stuff already!

Image Edited by the Author.

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Werbad



Registered
  18/09/2002
Points
  235
12th June, 2006 at 20:37:26 -

You don't have the Advanced math extension... It's an extension required when using trigonometry, atleast in TGF

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th June, 2006 at 20:41:29 -

You need to place the extension in your gfactory directory. And you need to upgrade your TGF for extensions to work. I think.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th June, 2006 at 22:42:13 -

no need to upgrade just plae the gfamath.gox file into the root of your tgf installation (usually C:\GFactory) and then try to open the file.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th June, 2006 at 22:57:17 -

I never got extensions to work on TGF. I placed them in the gfactory folder, but it couldn't find them. People told me I had to get some new TGF build in order to get them to work, but I couldn't be bothered. I hardly ever use TGF these days anyway.

 
n/a

Heart Break Kid



Registered
  13/05/2003
Points
  1754
13th June, 2006 at 04:01:41 -

i thought about doing that .. but instead of following it i posted a message here

Anywayz , that 360 engine stinks .. the controls look totally crap! I'll rather stick with the externally edited built in movements and get rid of such stuff interfering with it!

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Heart Break Kid



Registered
  13/05/2003
Points
  1754
13th June, 2006 at 18:55:32 -

You're such a you. I did'nt mean how they were 'controlled' , i meant how the controls 'felt'.. Lack of smooth feel!

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

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
13th June, 2006 at 20:55:49 -

If you only modify a built in movement and the ship can only move in 32 directions, I will be horribly disappointed in you. That 360 code isn't THAT hard to figure out, you just need to put some effort into it.

 
Craps, I'm an old man!

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
14th June, 2006 at 02:49:29 -

It's just a copy paste job with HBK, you should know that.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Heart Break Kid



Registered
  13/05/2003
Points
  1754
14th June, 2006 at 08:10:53 -

are you drunk again?

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
15th June, 2006 at 00:53:40 -

I don't see how that's relevant to him just dominating you.

 
n/a

Heart Break Kid



Registered
  13/05/2003
Points
  1754
15th June, 2006 at 05:55:35 -

you're high?

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
16th June, 2006 at 23:49:27 -

Not at present. Again, not relevant.

 
n/a

Heart Break Kid



Registered
  13/05/2003
Points
  1754
17th June, 2006 at 00:20:24 -

see , got you!

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!
   

Post Reply



 



Advertisement

Worth A Click