locohost's Forum Posts

  • I'm trying to Pick (add to SOL) all Tiles that are within a certain pixel distance all around a Token clicked. Sounds easy right? I've tried System Pick TIle by Eval and Compare using distance() but nothing is working.

  • I've read everything I can find on picking Family instances and I honestly don't see how I can do this...

    I can't pick two Fighters in same "Fighters" Family, determine if the first Fighters has LOS to second Fighters, then if second Fighters.IsFoe (inst var) is True, set second Fighters to visible. I tried the two families trick, Fighters_1 and Fighters_2, this could work if you were allowed to have the same Fighter.Foe inst var on both families. But you cannot.

    I think this may be impossible in C2

  • I've made a little test with a new project:

    [attachment=0:3owajqu9][/attachment:3owajqu9]

    the "inc" variable should stop at 9 but it continues to be incremented by 1.

    What's wrong here ?

    Interesting. I see the same result. The loop sub-event seems to get evaluated independently of the parent loop completion. So the increment is forever, in this test. Seems like a bug to be logged.

  • Magistross

    jqquick223

    Yes, my feelings exactly.

    I'm pretty much waaaaay back in the days when I had to use JS alerts for debugging. Sucks bad

  • I can't seem to set a breakpoint anywhere in any of my event sheets. How are we supposed to debug?

  • I started the app in regular mode (not debug) then hit F12 to bring up console. For some unknown reason it was not finding the tilemap .png file. Looked in the project and it the tilemap had no image. Had to reload the tiles .png. No clue why this happened

  • You see the C2 gear logo, the loading bar is blue until about 64% and then it turns red and everything freezes. What is happening and how do I debug this?

  • Here's a really simple new feature: I really want to add a comment immediately above an action to break them up and add clarity.

  • grigrizljac +1 to the configurable export location!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How'bout "containers" for Families? Each time you create an instance of something in the family, it automatically contains the family container object. I could use this right now for sure.

  • It didn't work out that well.

    What is sgn15 is suggesting with the sensor points is quite clever. It should work very nicely if implemented correctly. I'll be trying this soon. Put the points along pathways and at intersections and turns. Add some logic in the points to intentionally direct certain sprites or even randomly turn them or make them act based on where they are or what they might have in LOS. It's a good idea.

  • Ok. I would suggest making sensors (invisible objects). Better yet, make different sensors for different movement directions.

    If enemy overlaps sensor_right, move right.

    If enemy overlaps sensor_left, move left.

    and so on.

    then you can also check line of sight or distance from player.

    This is very interesting. I think I can use this. Thanks!

  • Google for some articles about JS "closures" and referencing vars outside of a "callback"

  • R0J0hound Thanks again! This is exactly the info this thread needed. So calling functions, passing in UID as first param, then doing PickByUID is definitely the way to go. Beautiful.

  • R0J0hound That was it. Thanks for the extra detail. It actually makes sense when you see that. Thank you!!!!