codah's Recent Forum Activity

  • Yes, except that Family do not have a LOS condition for instance. So for my particular example I'm not sure it can be used. There does not seem to be a way to do this but create as many different sprites of bots that I want and code the specific events for each of then:

    If bot1 has LOS to bot2...

    If bot1 has LOS to bot 3...

    if bot2 has LOS to bot1...

    if bot2 has LOS to bot3...

    etc.

    Doesn't seem very code effective to do it that way.

    But thanks for your help, I will keep searching.

    ok good luck

  • There's a fair bit wrong with that code. Firstly you're doing the loop every tick. Secondly, in the function you're accessing param #0, 1, or 4 but you're only passing one param (sprite.delay). You're also not picking any Sprite objects in the function, so all of them get picked and spawn the Sprite2 objects. I wouldn't use a sprite's UID as they are not fixed (maybe in a trivial test like this but not in a real game). Even so a delay of 0 would be just a stream of Sprite2's coming out. There's more, but how about start over..

    PS: I only used IID as a way of getting different delay values, but you could use choose() or random() or anything else.

  • I haven't tried it, but r191 lets you reset persistent objects. Otherwise, you could have a System: Save from right at the start of the game, and just do a SystemLoad when you want a new game.

  • I mean displaying values in the developer console that you get if you hit F12 from Chrome. Do you mean the debug panel? That definitely has its uses but also its limitations.

  • yea I was wondering.. how the heck... thanks again

  • You're missing the 'else' Right-click event 24 and choose Add->Else, you should be right.

  • oh. my. god.

    thanks! I thought I was in the twilight zone.. damn it

  • Hello good people. See the capx: click on a sprite to destroy it. But click on the right hand side of the white sprite, and it doesn't register the click. The second sprite is fine. What's happening? Thanks.

  • I find it an absolute must to print out debug information to the Chrome console. Unless you have some other way of doing it, I didn't look too closely.

  • BTW your main mistake was....

    not using the Browser object to print the values out.

  • 1 1/2 hours is nothing

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • charcomp1 has a trailing space so the comparison fails

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies