Top-down enemy collision?

This forum is currently in read-only mode.
  • As the title says. How do i make enemys that follows me when i walk, and avoids props (3D boxes)? Please respond fast

  • <FAST>

    Give enemy the RTS Movement and make event "Start of Layout" -> "Sprite: Avoid moving over Something"

    </FAST>

  • <FAST>

    Give enemy the RTS Movement and make event "Start of Layout" -> "Sprite: Avoid moving over Something"

    </FAST>

    Then the monsters move around things, but just half the bunch. And they stop 2 meters from the player too.

  • Ummm how big is the enemy and did you change his cell size? Maybe thats the problem.

  • Ummm how big is the enemy and did you change his cell size? Maybe thats the problem.

    http://85.11.28.249/flash/n_v3.exe

    See for yourself.

    And what's "cell size"?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Ummm how big is the enemy and did you change his cell size? Maybe thats the problem.

    >

    http://85.11.28.249/flash/n_v3.exe

    See for yourself.

    And what's "cell size"?

    Ok zombies are going towards me and they are killing me, the cell size is in "RTS Behaviour" on the left, also give zombies rotate speed like 1000 so they can manevour better, give them cell size 10x10 and test it.

  • >

    > > Ummm how big is the enemy and did you change his cell size? Maybe thats the problem.

    > >

    > http://85.11.28.249/flash/n_v3.exe

    > See for yourself.

    > And what's "cell size"?

    >

    Ok zombies are going towards me and they are killing me, the cell size is in "RTS Behaviour" on the left, also give zombies rotate speed like 1000 so they can manevour better, give them cell size 10x10 and test it.

    Thanks, works beautiful

  • By the way, how do i make a timer?

    Like - wait 5 secons, spawn a zombie.

  • "Every 5000 miliseconds" -> "System: Create object Zombie on layer 1 at (x,y)"

    And you can add another condition so you can stop creating zombies.

  • And , the 3D boxes uses only the "Right Face" one, so there's windows on the roofs >_< is this a bug or something?

  • And , the 3D boxes uses only the "Right Face" one, so there's windows on the roofs >_< is this a bug or something?

    Yep its a bug, it should be fixed in the next release.

  • Doppel to the rescuuuuuuueeeee!!

    Hey just in regards to the timer question... I haven't tried it yet, but can you compare the timer to a random rolling value? So instead of every 5 seconds it could be every 5 seconds +- random value between say 1-3?

    Just wondering how to generate a random number in other words...

  • lol and to create random value there is random(x) funtion which apparently generates a random number from 0 to x, so in order to have random time respawn we have to change a little the event.

    "Every 2000+1000*random(1)+1000*random(5) miliseconds" -> "System: Create object Zombie on layer 1 at (x,y)"

    in before question why random(1)+random(5) becouse i dont know if random have some kind of number limits so it will go as it.

    Edit: The green text is heresy... now it should go like this

    "Every 2000+1000*random(7) miliseconds" -> "System: Create object Zombie on layer 1 at (x,y)"

    Becouse number 1 is new 0 in construct =D

  • http://ninjasvspiratesgame.googlepages.com/index

    Download there.

    When it's about 20 monsters in the game total, it's lagging like crazy! Why?

  • Its laggin probably becouse the construct engine is not optimized.

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