Spawning target in fixed distance from last target

0 favourites
  • 2 posts
From the Asset Store
Show your master of martial arts by killing all flies empty handedly!!!
  • Hello comunity,

    I am looking for a help.

    I have been trying to make an easy game with following logic.

    Spawn target every 2 second. Distance of new target should be 50px from last target in random direction. I don't know why, but I can't achive this logic. Bellow I share the event sheet and the how the logic "works" as it is set up right now.

    I would be glad for every help ๐Ÿ™‚

    If there is any Construct 3 developer form Czech republic or Slovenia willing to get in toutch and help on another project please contact me ๐Ÿ˜‰

    Thank you

    Best regards,

    Tomas

    [youtube video="[youtube video="

    "]"]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pick the last instance then spawn another using radius as method to spacing them. Put circle formula to put in position as polar coordinate.

    x = r * cos(โˆ†)

    y = r * sin(โˆ†)

    Of course that just pseudo expression but Will work if applied properly.

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