The Daily Click ::. Forums ::. Klik Coding Help ::. Top-Down Space Movement Engine
 

Post Reply  Post Oekaki 
 

Posted By Message

Adrian Silea



Registered
  28/03/2005
Points
  88
2nd April, 2005 at 03:20:03 -

Okay, so far, I've tried various solutions so as to solve this bit of programming, but I can't say I've found the best one. I've about 10 examples on the engine I'll tell you about, but none of them seems to satisfy me fully, SO I'm going to ask of you for a static movement engine, based on the 360 degree movement, in which you'll use the Active Picture Object.

Mainly, I need that Asterok-like spaceship movement, as in, by pressing up, you add more inertia to the spaceship, left and right only change the looking direction (not the "walking direction") of the ship, and pressing up while the two directions are different will sorta bring the ship's looking direction on the waking direction's course. And, if you had the ship going the opposite direction, when you accelerate (add thrust), the ship'll slow down and gently accelerate the opposite way, do you get me? Well, thanks for this, I'm looking forward for your replies (even if I might solve the problem quite easily tomorrow, when I'll be refreshed ). Ciao!

Post Scriptum: I already have a source that I coded myself, for the movement engine, but it seems I have to solve a lot of bugs in order to get it to work right, and, so far, I feel that working on that source would take longer than actually asking and getting some help from you guys. If you want the source, I'll post it, and you can work on it.

 
In every moment, pretious life is drained from our souls. It's shame that, upon the point of acknowledging this, there's nothing much left of us anymore... (Saadi Golestam)

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
2nd April, 2005 at 03:39:17 -

repeat while left key is pressed
set angle to angle -3

repeat while left key is pressed
set angle to angle +3

repeat while up key is pressed
add sin (angle of space ship) *1.2 to alterble value a
add cos (angle of space ship) *1.2 to alterble value b

always
set x of space ship to x of spaceship + alterble value a / 10
set y of space ship to y of spaceship + alterble value b / 10

 
Visit www.crobasoft.com or you're a Noob.

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
2nd April, 2005 at 03:52:19 -

if you want an example, just load a picture into the active picture
http://n.1asphost.com/destroyer84/space%20movment2.cca

 
Visit www.crobasoft.com or you're a Noob.

Adrian Silea



Registered
  28/03/2005
Points
  88
2nd April, 2005 at 08:46:25 -

Bloody brilliant, thanks for this ! You'll be in the credits for sure !

 
In every moment, pretious life is drained from our souls. It's shame that, upon the point of acknowledging this, there's nothing much left of us anymore... (Saadi Golestam)

Adrian Silea



Registered
  28/03/2005
Points
  88
2nd April, 2005 at 08:58:44 -

But there's a catch: whenever you reach pure (or almost pure) NE, SE, SW or NW directions, the acceleration will virtually... render itself useless, can you figure out what's wrong?

 
In every moment, pretious life is drained from our souls. It's shame that, upon the point of acknowledging this, there's nothing much left of us anymore... (Saadi Golestam)

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
2nd April, 2005 at 09:48:41 -

yeah i can see the problem. but i once made a similar engine there dont have that bug
http://n.1asphost.com/destroyer84/space%20movment.cca

 
Visit www.crobasoft.com or you're a Noob.

Adrian Silea



Registered
  28/03/2005
Points
  88
2nd April, 2005 at 10:01:32 -

It would be great if I had "kcamath.cox", lol... Can someone please supply me with it? I'm having trouble getting it...

EDIT: Or, at least, make the file an executable and then place it here, okay?

Image Edited by the Author.

 
In every moment, pretious life is drained from our souls. It's shame that, upon the point of acknowledging this, there's nothing much left of us anymore... (Saadi Golestam)

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
2nd April, 2005 at 10:14:31 -

yeah there's site is down, it's almost like there's a power strike in the click community because of that, any way you can get it here.
http://n.1asphost.com/destroyer84/kcamath.cox

 
Visit www.crobasoft.com or you're a Noob.

Adrian Silea



Registered
  28/03/2005
Points
  88
2nd April, 2005 at 10:34:18 -

Thanks for the extension, mate... hmm... it'll be quite some effort translating all that into 360 degree movement, lol, lemme see if I can manage it... I guess asking for help on this one would be out of order, but almost necessary... sorry for bothering!

 
In every moment, pretious life is drained from our souls. It's shame that, upon the point of acknowledging this, there's nothing much left of us anymore... (Saadi Golestam)

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
3rd April, 2005 at 13:56:05 -

doesn't work for me

 
n/a

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
3rd April, 2005 at 14:02:58 -

what doesnt work for you?

 
Visit www.crobasoft.com or you're a Noob.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
3rd April, 2005 at 16:13:44 -

that sincos movement. It just moves downwards. maybe it's just me . Never use sin & cos. heh

 
n/a
   

Post Reply



 



Advertisement

Worth A Click