Tylairus's Forum Posts

  • 6 posts
  • Thanks for the response. Yeah, I notified if I move the origin right down align with the top of the layout, it will work. However, the reason I didn't jump right to doing that is the enemy tends to rotate on screen, which would give nearby towers and unfair advantage while it stands still.

    I tried adding On Created -> Rotate clockwise 90 degrees, Set Angle -> 90 degrees, and even stuff like Rotate degrees, but it is always facing right no matter which action I used. I'm probably missing something, as I haven't has an issue with rotating previously.

  • Hello,

    I'm attempting to path-find from off-screen but it does not work. My enemies spawn about 32 pixels above the path they should be walking on, but are unable to find a path.

    What could be preventing them from finding the path when they're directly beside it? Is it even possible to spawn outside the layout and path-find back in?

    As I still cannot post links, here's the big ugly Dropbox Url for the capx:

    dl.dropboxusercontent.com/s/rfrh54q1p8vvp38/Tower%20Defense.capx

  • That's an excellent idea. My final goal will be to have a base with multiple different pieces which can be upgraded by the player and tore down by the zombies, so that is close to what my thought was.

    Ideally, I'd like the zombies to try to path find into the base, but if they can't reach it, attack the nearest base piece.

    Thanks for the response. I appreciate the insights and I'm going to give them a try today.

  • Thanks for the replies

    Ooops, I just made that Dropbox for this reason so I didn't know. Here's the link they give when you click share, and it appears to work when I'm logged out. Also, turns out new users can't use the URL bb code, so I guess this long annoying url will have to do.

    dl.dropboxusercontent.com/s/yplfoqmlv034tfu/zombie-movement.capx

    LittleStain - I thought of random image points scattered throughout it, but wasn't sure how to target a specific one. If I remember correctly, I didn't see an option to choose which image point it would path find to.

    ramones - That's actually what I'm doing now. That is working pretty well, except since the zombies all target the origin of the object, they typically end up stacking since they funnel towards to middle as they walk to it.

    Guizmus - That sounds like it may be a solution for this. I'm going to give it a try right now.

    I'll post back with any updates, thank you all for your responses.

  • Sorry about the link, I put it in a url tag but it didn't work apparently.

  • Try Construct 3

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

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

    I'm attempting to get my little zombies (red squares) to find a path to the human base (green rectangle), and then once they collide with it, they flash to signify that they are attacking it.

    However, all zombies automatically target the Origin image point of the base, so they tend to end up piling up in the center base all together.

    How can I get them to simply walk to the nearest part of the base instead of an image point. Is there a better solution that I am not aware of?

    Thanks ahead of time. Here's the .capx if you need it. Nothing special currently. dl-web.dropbox.com/get/zombie-movement.capx

  • 6 posts