Help with spawning enemys and wildcard alternative

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I have two questions ,

    1] In construct 2 expressions is there something representing similar to (*) astrick wildcard?

    2] How do I make enemys spawn at a certain distance from the player (x pixels) every time the player covers a certain distance (y pixels).

  • 1) In what context would you need this? I haven't really missed them myself so asking where you'd need to use them :)

    2) Something like this:

    player.distanceTravelled = y

    ..   create object enemy at (player.x - x, player.y)

    ..   player.distanceTralled = 0

    Depending on how your player moves you'll need to add into distanceTravelled every tick.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1) In what context would you need this? I haven't really missed them myself so asking where you'd need to use them :)

    2) Something like this:

    player.distanceTravelled = y

    ..   create object enemy at (player.x - x, player.y)

    ..   player.distanceTralled = 0

    Depending on how your player moves you'll need to add into distanceTravelled every tick.

    2)Thanks, that solves it.

    1) I don't really 'need' this but it would be better if I could use it in mathematical expressions, such as finding all the even numbers between certain intervals.

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