playMaker

Author Topic: Randomly Spawning stuff  (Read 550 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 339
Randomly Spawning stuff
« on: June 21, 2021, 02:20:54 PM »
Hello,

I have randomly spawning 2d planets (circles essentially) and I need to get other stuff to spawn on the surface of the planets. I would like the rotation to match with the planet's ground. I would also like eventually to have some planets spawn in the objects and some not. How would I go about doing this? Thanks!

John Bassi

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: Randomly Spawning stuff
« Reply #1 on: June 21, 2021, 07:44:27 PM »
Hi.
Maybe you can get the angle from the center of the planet and set the rotation based on that