Tower Defence

0 favourites
  • 5 posts
From the Asset Store
🙌 Battle Defense Sound Pack comes with 525 high-quality sound effect
  • Hi all, I have been working on this TD game for a few weeks now while learning how to use Construct and so far its a pleasant experience!

    I have one issue I haven't been able to solve myself so far;

    When placing "traps" (see attached .c3p) they for some reason align themselves off-centre to the left. (apart from the Trap.Chest which when it animates moves to where it should be)

    I am also looking for general advice/feedback for this type of game, such as; which movement system for this TD-intended purpose is most suitable (so far tile-based seems okay but occasionally the sprites will walk "around" solid objects), how to track statuses, which systems are most appropriate for interactions between sprites and how to make my code more efficient.

    Thank you in advance for any and all help :-)

    https://www.dropbox.com/scl/fi/av5triniy34gwvruuxo14/TD-Test-1.c3p?rlkey=1d9169is3tqiqaftv8aj2ve9w&st=scjwib2o&dl=0

  • Oh another thing I forgot to add;

    When a "trap" is destroyed, I refresh the "available" building slots but doing so refreshes ALL of them, even if it already is "occupied".

    (Event 57)

    Unsure how to specifically select the appropriate "BuildingSpot" :<

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For the offset images, open them in animations editor and look at the origin point of those traps, it is not in the centre. You can right click origin and quick assign to the middle.

    For movement anything would really work for this game even as a bullet behaviour could work unless there are specific gameplay elements to do with paths other than moving in a straight line? If it should stop when colliding with certain things you can do this with events.

    Tracking statuses, such as ?

    For the building spot, first change the condition to pick the Trap object, not system condition for hp. Then you can say 'Trap is overlapping BuildingSpot', this will pick the correct one.

  • For the offset images, open them in animations editor and look at the origin point of those traps, it is not in the centre. You can right click origin and quick assign to the middle.

    I thought it might be something silly I overlooked ^^

    For movement anything would really work for this game even as a bullet behaviour could work unless there are specific gameplay elements to do with paths other than moving in a straight line? If it should stop when colliding with certain things you can do this with events.

    So the bullet behaviour you think would be most suitable?

    Tracking statuses, such as ?

    I figured this one out myself shortly after posting :'D

    For the building spot, first change the condition to pick the Trap object, not system condition for hp. Then you can say 'Trap is overlapping BuildingSpot', this will pick the correct one.

    This worked perfectly!

    Thanks for all your help Lionz! <3

  • For the movement in this game you can probably use most things, move to or tile movement or bullet. The grid seems important for placing items but not for enemy movement so what you have now should be fine.

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