Sestenes's Recent Forum Activity

  • Just set Mouse: set cursor to None, and then have a sprite follow your mouse.x and mouse.y every tick.

  • This method actually doesn't work very well, heh. Any other suggestions?

  • Wait, I figured it out. I just set a global variable to capture the UID of the most recent tower placed.

    Then I set up an event that, on Pathfinding failed to find path, pick the instance of the tower with the UID stored in the variable and destroy it.

    Then have your creeps find the path again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I too am looking for a solution to this problem.

    The other option is to prevent the player from putting down a blocking tower at all. In this case, just before you actually place down the tower (once it's been verified for position, cost, etc.), run a pathfinding action to see if a path is possible once the tower would be theoretically placed down. If it's not possible, prevent the tower from being placed.

    GeometriX, can you offer a suggestion as to how to solve the problem the way you suggested? How do you place a theoretical tower so that you can run the pathfinding test on it, without actually laying down the tower?

  • Damn, I was hoping to see a build. I had a similar idea and found this thread from googling it, heh.

  • FIXED IT!!!

    Upon further review I found that I had to place the following into my php file....

    "header('Access-Control-Allow-Origin: *');"

    Sorry... I'm used to working with flash. A lot of this is new for me.

    Thanks!

    I had the same problem and this header declaration worked for me too. Thanks for sharing!

  • Very clever. Thanks for the tip.

  • Love the alpha build - great game so far! Are you going to introduce gamepad controls? I'm tempted to map a controller to my keyboard just to play it that way.

  • Thanks for the tip about tokencount('string','token'). One oddity I've noticed is that for some reason I'm having to set the result to -1 in order to get an accurate count. Weird, but it works.

  • Lots of great looking games in this thread. It's hard not to be discouraged.

    I'm still quite a newb, but I thought I'd share what I've got so far in my RPG Dawn of Days. It's still very early in development, and I don't know what I'm doing yet!

  • Thanks for the fix! This is a great addition to C2

  • Sestenes

    Sorry, this sample capx is too large. You might provide a segment of text which had bugs.

    Sorry about that. Here is a simple capx that illustrates the bug.

    Both buttons "Plain" and "Styled" just append a simple string: "More text more text more text more text." The only difference is that the "Styled" button uses a tag text class to make the font color red.

    You will notice that after you use the "Styled" button at least once, then when appending additional non-styled text to the tag text object there will occasionally be an odd line break that is clearly not a part of the event sheet logic. Just press "Styled" once, and then "Plain" a few times to see the problem.

    Cheers, and thanks for looking into the problem.

Sestenes's avatar

Sestenes

Member since 23 Apr, 2014

None one is following Sestenes yet!

Connect with Sestenes

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies