*HELP!* Car orbiting around planet ( but i still want him to be able to jump and drive faster )

OskarDeveloperOskarDeveloper Member Posts: 533
edited September 2012 in Working with GS (Mac)
This is what i want.. But like only one big circle..


This is what i come up with.. I made it really simple and used the "accelerate towards" attr. But i cant get it to work proper. I bet there is a much smarter way of making this by using, min,max,cos,sin or something.


I want the player ( the car ) to drive around the "planet" and i also want to add a jump button and a accelerate button, normally I know how to code a jump button and an accelerate button, but with the player "orbiting" around the planet It makes it alot harder for me because... yeah i guess you can understand by watching the youtube clip.

/Thanks

Best Answer

  • famekraftsfamekrafts Posts: 834
    Accepted Answer
    In that case If you can make it go round on the earth than you can make it go round while jumping too, just use the same formula for going round when jumping and limit the x and y positions. easier said than done I know,

    Maybe if you can share a sample GS template file of making it go round and I can try to work on the equations and behaviors.

Answers

  • OskarDeveloperOskarDeveloper Member Posts: 533
    plz..
  • famekraftsfamekrafts Member, BASIC Posts: 834
    I have no yet run the platformer style game, but it might be done like this, if the player stops colliding with the sphere, make the custom gravity on.

    give 4 invisible actors to the 4 directions of the sphere, if he is overlapping any two not facing the opposite blocks and the gravity is on, he jumps and falls

    while the other two can be made to jump towards the opposite block using interpolate.

    I am noob at this software, so just gave you a noob suggestion. :) until someone pro gives you a better one with all the equations and stuff.





  • OskarDeveloperOskarDeveloper Member Posts: 533
    @wickedsunny Thanks for trying to help! But that is not what i want to do really.. I only want one biiiiig circle and then i want the player to orbit around the circle. I also want to make him jump and then accelerate down to the circle again ... Just like earth seen from the side or something :)
Sign In or Register to comment.