Object orbiting another object issues

0 favourites
  • 11 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • So, I was able to get my object to orbit another object, no issues there!

    In case anyone was wondering how to do that, there's a great example here:

    construct.net/en

    Which I was able to use.

    However, I don't want the object to be there from the start. I want it to be able to be created, after the player picks up a power up, equips it and then hits the P button. I'm hoping then I can then get the player to spawn the object and have it rotate around it.

    Does anyone know how to do this, or have an example of it?

    Thanks guys!

  • Should be pretty easy.

    Spawn an object at the correct distance from the player and set it's events to the orbit events.

    But I guess it's harder than that, because you put your question here.

    Could you post a capx, so I (we) could take a look?

  • the capx itself is huge and ridiculously confusing even for me. But the only portion that the object is in is this part:

    <img src="http://somethingwickedart.com/AxeSnip.PNG" border="0" />

  • And thanks again!

  • And actually the "on created" part doesn't work, as it needs to be "every tick" for the axe to rotate. So that's been changed now. But the axe still doesn't spawn properly

  • What is the problem with the spawning? I would use on p released instead of pressed (or a trigger once), but see no further issues.

  • Currently, when the layout starts the axe is already spinning around him, despite the conditions on it, and the axe being no where near the player on the screen at the time but of course there needs to be one in the layout for it be able to be spawned.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • So as of right now, the issue is that when the layout starts, I don't want the axe to be there, until the player hits P and then spawn the axe, but currently the axe is already there, and hitting P does nothing.

  • on start of layout - axe destroy.

  • Haha well... that was easy, sorry to waste your time! I must be entirely too tired to be doing this right now. Thanks again!

  • No problem! Glad I could help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)