redlinetr's Forum Posts

  • 9 posts
  • like this.

  • I want add more enemy . But any enemy if see the player, others are moving like they have seen . How I fixed this ? (Im using ctrl-c and ctrl-v to clone)

  • Depends how your enemy is moving :) what logic are you using to move, it is bullet moving left/right? When they attack you can set speed 0 or disable bullet, then if player moves away so distance between player and enemy is greater than 20 for example, then you set speed back to normal or enable bullet. Distance check is distance(player.x,player.y,enemy.x,enemy.y) > 20.

    I did like this and it worked . Thanks a ton :)

  • Ya that is not the animation but more that the object is stuck and pushing on the player, you need to set a limit distance of x between enemy and player for the enemy to a. stop following and b. start attacking

    How I write this to the event sheet? I tried some things but didn't again :((

  • Those events run every tick so too fast to see anything, move to every X seconds for deducting health variables. Animation you can also add to every X seconds so it plays on every attack.

    Thank u for interest . My char. don't die instantly but attack anim. still doesnt work . enemy goes in circles on my char .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Detect if enemy is overlapping player and attack/play anim every x seconds?

    Yea m trying this. But my char instantly dying . Like this.

    but if I do , enemy only one frame moves

  • It depends on what you are trying to do. If you want the sprite to slow down, put a negative value in "Acceleration" field.

    If you want the sprite to stop after some distance, use "Bullet compare distance traveled", if it's greater than some number, disable Bullet behavior.

    If you just want to destroy sprites as they are leaving the screen, add Destroy Outside of Layout behavior, or Fade behavior with Destroy=Yes after some timeout.

    Yepp . I'm adding fade behavior and work it . Thank u so much .

  • I'm searching forums and videos but I just found ranged attack . How do I enemy melee attack ?

  • You do not have permission to view this post

  • I'm added bullet in my char. But bullet range endless . How do I reduce bullet distance ?

  • 9 posts