Search Unity

2D Object jump and planet rotation

Discussion in '2D' started by TendoRonin, Oct 18, 2021.

  1. TendoRonin

    TendoRonin

    Joined:
    Oct 10, 2021
    Posts:
    2
    I'm creating a new game which the player can jump from one planet to another and also I need the planet to be rotating too. Can anyone give me the scripts for it? I'm a beginner and I'm still learning most of the keywords.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,735
    That is an extremely challenging game to make. Have you considered setting your sights a little more realistically and working through a few dozen simpler games first?

    Either way, this tutorial from Sebastian Lague worked PERFECTLY for me a week ago, when I was able to directly use the code provided in the link to run around on my own little spherical world.



    All you need from then is some interplanetary ballistics of some kind... go nuts, see what you can come up with!
     
    TendoRonin likes this.
  3. TendoRonin

    TendoRonin

    Joined:
    Oct 10, 2021
    Posts:
    2
    Thanks for the support!
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,735
    Of course you're welcome!

    But I also just realized that I misread your 2D and thought you wrote 3D... my bad!

    The good news is that 2D planets are quite a bit easier to work with, and there's cool tutorials for those to. Here's what I just saw, your googling may vary:

    Screen Shot 2021-10-19 at 7.16.07 PM.png