help: prevent an object from being created in path

0 favourites
  • 1 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I have been struggling with a pathfinding issue for days now. If you have played fieldrunners 2 or are familiar with tower defense games, I am trying to implement a feature which allows the player to place walls (named dogwall in game) to manipulate the enemies path. However, placement of the wall in the path sometimes prevents any enemies from moving at all or sometimes destroys all walls. Most of the dogwall functioning code is in event sheet "L1-1". The placement and HUD elements are in the event sheet "turrets". I have looked all through the faq and tried numerous attempts to get the code right. I did not leave all the attempts as the event sheet was getting very disorganized. As I am still learning, I am becoming frustrated. Any help or insight into the issue would be appreciated. The capx link is below. Thanks in advance.

    dl.dropboxusercontent.com/u/103925639/CAPx/TDWF.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)