Sandvich725's Forum Posts

  • 2 posts
  • Ah i think i finally figured out how to add CapX links to this forum's posts. This should be it.Be warned though. It is a bit messy and might take a little while to figure out the code.

    Focus on the parts under the Blu_Tank and Red_Tank headings. The Blu_Rocket_Tank stuff is irrelevant right now. Also remember that only the Blu tanks are to be controlled.

    EDIT: Whoops... i need 250 rep... IDK what to do now...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello.

    I am trying to make an RTS game, but i am having some major issues with regards to targeting. I have tanks that consist of 2 sprites: A tank body and tank turret. Blue tanks are yours and red tanks are enemies (though for now red tanks do not function other than to be targeted, take damage if so and then be destroyed if its health reaches zero).

    I need the blue tank to be able to auto target red tanks that are in range. But i also want to manually target an enemy by right clicking it. I need this manual target to override the auto target, but i am at wits end as to how to figure this out.

    Another problem is that i want the selected target to switch to an animation called targeted (shows a targeting reticle over the tank) while the blue tank is selected (selected = true), the blue tank is targeting (targeting = true) and the red tank in question is targeted (targeted = true). This works fine on the blue tank's side, but not the red tank! All the enemy red tanks are switched to targeted instead of the specific one. How do i make it target the specific one?

    I also require the projectile to ignore untargeted tanks, going through them to hit the targeted ones. Which is difficult when all of them get selected to targeted. I think I already have this down but I'm just putting it out there

    Sorry bout the wall of text. If your answer is better than my targeting system feel free to suggest it. Also im using the free version of construct 2.

  • 2 posts