Turret/Wall

0 favourites
  • 5 posts
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • I've been practicing with a top down shooter, so far I've made something I like and my friends are finding it quite hard (that's the idea).

    Every 15 kills I'm giving the player 1 piece of in-game cash and the idea is that once they have 25 cash they can purchase either a turret or a wall.

    I followed a turret guide but it was aimed at a turret vs player. I'd like it to shoot the nearest sprite, but there will be more than one. I've tried looking on Google but I can't seem to find what I am looking for so I'm wondering if anyone knows of a tutorial or a way to do this?

    I'd also like help with the wall, I'm planning on having a straight line for the wall that a player can place down. But I can't figure out how to rotate an object 90 degress and have it snap to a grid and be placed?

  • there is an action or condition built-in in C2 called "pick nearest" but i havent worked with it yet.

    try to search here in the forum section i'm sure you will find a tutorial or a solved thread how to pick the nearest sprite since this is a very frequently asked question.

    is the player able to rotate the wall by himself in-game?

  • You can do a couple of things, you can have a condition that when objects of a certain type (or family) are within range of the turret, have it acquire target.

    You can have an instance variable that says wether the object is an enemy or not and have the turret lock onto it if the variable shows it to be an enemy once it is within range.

    You could also do pick nearest as philx suggested, though you may have to do one for each type of enemy unless they are in a family...

    Just a few ideas...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the tips, I'll look into the pick nearest and see if that works.

  • ps:

    scirra.com/manual/131/common-conditions

    here's the manual entry about the pick nearest condition.

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