RANDOM LOCATION OBJECT

  • I know this has been asked in some form before but I'm not exactly sure if the answers are what I'm looking for.

    I'm working on a game with 6 different platform heights the player jumps up and down on to move up and down the board. What I want is one random object to appear at any given time on one of the platforms for a period of time and then disappear and re-appear on another platform if the player does not move fast enough to touch the object.

    I know how to set up a random range but how do I do it for specific spots? And as far as the wait time, destroy, create object I can do all that it's just the specific random points I'm not sure about.

    If I need to make multiples of the object I know how to do that but I was just hoping use one and randomly make it appear to the platform spots.

    Thanks and have a great day.

    Markess

  • You could use the event:

    System pick random platform

    • create object at: platform.x,platform.y+50

    (the plus 50 mis to make sure it's above the platform.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok that might do the trick. Thank you I'll give you feedback asap.

    Thanks

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