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
   

Post Reply



 



Advertisement

Worth A Click