Rhindon's Forum Posts

  • blackhornet - Dude. Stunningly amazing! I'm still looking it over, but I think I've kinda got the gist of what you've got going on. But I'm confused on one part.

    Line 39...

    Pick Node by evaluating NodePatrol.UID <> Enemy.CurrentNP

    What in the world is the " <> " bit? LOL I've never seen that before.

  • blackhornet - Dude. Stunningly amazing! I'm still looking it over, but I think I've kinda got the gist of what you've got going on. But I'm confused on one part.

    Line 39...

    Pick Node by evaluating NodePatrol.UID <> Enemy.CurrentNP

    What in the world is the " <> " bit? LOL I've never seen that before.

  • blackhornet - Hmmm...

    Well, a friend helped me identify one problem. I had quotation marks in the Properties field for one of my variables. So the editor was literally looking for ""String""... Heh. I'm going to look things over from there and see what I can resolve from there.

    But the short explanation goes like this:

    PATROL: Find path between designated PatrolNodes.

    CHASE: Find path to last known location of Player.

    ALERT: Find path within a radius from last known location of Player, search randomly for a brief time.

    RESUME: After some time has passed, if Player is not found, return to nearest PatrolNode and resume PATROL status.

    That's basically what's supposed to happen. Does that help at all?

  • blackhornet - LOL Trying to be, truly. But as you can see, I can already say a lot when I'm trying to be brief. Anyway, here's the capx.

    sugarsync.com/pf/D6025908_4317202_6840595

    Look for event sheet "ES CharEnemy", starting particularly at line 17, though lines 13-16 also factor into things.

  • blackhornet - Aye. In my learning and testing, I've found that to be more so the case than not. In trying to isolate a larger problem I'm facing in developing my enemy behavior mechanics, I'm presently attempting to isolate and identify where things work and do not. At one point, I did have the "On path found | Move along path" event set outside the whole series of events and loops that controlled enemy movement. I switched it inside the loop(s) just to test some things...

    Ashley - Thank you, sir! :) Someone newt shared with me a short tutorial on how For Each loops work, so now I'm trying to better implement (or remove) the use of them. My question here is simply trying to better understand the limitations of the functions that the loops have. Kinda like asking, "The rocket fires up...that's its function. But what's its limitation? How FAR UP can it go?" Hopefully that makes sense.

    Your point that For Each has no true/false factor is one such limitation (or quality, I guess) that makes things much clearer for future reference.

    Ultimately, what I wanted to ensure happen was that ONLY each instance whose path had been found would actually move along the path. This was before I fully/better understood how For Each works. I had previous implementations of my enemy behavior that had multiple instances moving when maybe only one or two should have done anything. That led me to thinking I needed For Each regularly...apparently not.

    ...Hmm...would it help if I shared my capx?

  • I have this basic scenario for my game:

    For Each Enemy

    -- Find Path

    -> On path found | Move on path

    "On path found" is, of course, a trigger.

    Can someone explain to me why a trigger doesn't work inside a loop like this?

    I'm finding I have to be very careful with my For Each usage (and sometimes finding it's even redundant...). So if I could get some clarification, that would be wonderful. Thanks!

  • blackhornet - I was mistaken; you were right. At some point I had a second array in my object list and was thinking that Line 2's array reference was to that now-deleted array. I toggled the event as you suggested and that cleared the problem up.

    However, Ashley, you may still have reason to check and see if that is a bug. Technically, I don't see why any error should have come up from how I had things...but that's just a testimony to my ignorance on software programming.

  • Link to .capx file (required!):

    https://www.sugarsync.com/pf/D6025908_4317202_6848587

    Steps to reproduce:

    1. Previously, what is now reference to the Enemy object in the Event Sheets were all references to a Family that contained the Enemy object. I swapped out all the Family references and deleted the Family entirely.

    2. I clicked Run Layout.

    Observed result:

    Two error messages popped up regarding Java and/or runtime errors.

    1. screencast.com/t/ZY2DuCEfNn

    ...then...

    2. screencast.com/t/fOlS203l9EF

    Expected result:

    While not all elements are in place, a simple layout of the Enemy objects, the CharFinn object, and the black wall blocks should have all appeared, as well as a couple of NodePatrol object instances. However, due to the errors, these did not fully take place.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7 (Service Pack 1)

    Construct 2 version:

    r137 beta

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley - Thank you for the verification. I'll report it to the bugs forum to be squished. Thanks for all your hard work!

  • blackhornet - Thank you for taking a look. But actually I do want that array there. LOL It would take too long to explain, but that part is a-okay where it is.

  • I'm not yet sure if this is a bug...

    I made some major swaps of changing references to a Family of objects to just a single object in the Event Sheets. Adding a couple of other instances of another object, and suddenly it is giving me the following errors:

    1. screencast.com/t/ZY2DuCEfNn

    ...then...

    2. screencast.com/t/fOlS203l9EF

    I'm have no clue where my mistake came into play.

    .capx: sugarsync.com/pf/D6025908_4317202_6848587

  • Guizmus - Ah! Thank you. So obvious yet I'm so "skilled" at missing it. LOL Thank you for the work to check on that.

  • I have a Family of enemies who will all have line-of-sight characteristics. Given certain circumstances which can be true for ANY of the enemy types, I want to Pick Nth Instance of the Family instance. However, this doesn't seem to be working as I thought it would. And I theorize that it's because the Nth instnace might refer to the Nth EnemyOne or the Nth EnemyTwo. Same "N", but two different enemies despite being the in the same family.

    I just want to ask if this theory is on par with how Families do (or don't) work. If my theory is correct, then I'm gonna have to learn how to use Functions...

    Input?

    Thanks!

  • Nothing BIG...well, unless you're easily amused/excited/entertained!

    ArcadEd has been helping me with getting the first major "complete" portion of my game exported to a server so I can share the actual game progress and test it even with non-C2 users.

    Quite an exciting time for me. :D The first step towards me publishing my game and getting feedback!

    Opperation: P.A.S. is coming!

  • pixel perfick - Thank you, again! :) Man, you're on top of the forums quite well lately!