Help please

0 favourites
  • 5 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi folks im very new to this construct 2 and started trying things out. ive got a problem atm that's completely stopping me at the moment.

    i have a creature that moves by itself and goes towards a barricade now i want this creature to attack and destroy this barricade, ive made the collision and then off the collision told the creature to wait 1 second before doing 1 damage to barricade. here is where the problem is how do i loop it so while the creature is colliding with the barricade it carry's on doing damage after waiting for 1 second each time im sorry to ask this of you folks please help :)

  • There may be a simpler way to go about this, but you could pin an invisible box sprite to the creature. While the box is overlapping the barricade, use an Every X seconds event to have the rest run every 1 second.

    Using the box with Is Overlapping would allow it to check the proximity constantly, rather than only once like On Collision, which would be necessary to check if it should attack every second.

  • My idea: when creature start overlapping barricade then it stop (and play attack animation or something). And now just make event: when is overlapping barricade and every 1 sec and action: substract form barricade hp 1. After that creature will be standing very close to barricade (overlapping several pixels), attacking it and don't move forward.

  • ah fantastic hats given me a great help i mean also at the sound sof it i could put and invisible marker if the creature gets to close tyvm guys ill give this ago and let you know how it goes :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yay success tyvm guys i spent hours working it out i never ever considered using a second condition to make the actions loop tyvm appreciated

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