codah's Forum Posts

  • Did you preload interstitial?

    Maybe you have your admob id's wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this thing possible?

    Sounds like something that should be possible

    Anyway try this.

  • I would try to make a trivial test app with an ad in test mode and see if that works.

  • Thx for the replies all.

    The code I was trying to get to work can be seen in attachments. The gist of what i'm trying to do is that every so often the enemy sprites will check to see who has the highest agro and update their tarX,Y variables. I cannot seem to get the event to return ether a hero or gate so that the enemy can update its variables.

    This is not what I think my final code will be, instead of tarX,Y it will be tarUID but have not tried this until I get this running.

    Thank you.

    Isn't that what I did, but I did it in a function? Anyway good you got a solution.

  • Sure here's the whole thing.

  • Do you mean this? The main interest is the "DoIt" function. The rest is candy

  • So you don't want to check at the end of x seconds that the word was typed, you want to trigger something as soon as the word is typed?

  • Hey you should tag people (also spell their alias right ) so they know they got a response

    I'm not entirely sure I know what you mean. So you have instance variable(s) on the button? If you could isolate the issue in a small capx it would be easier.

  • Can't imagine why. Maybe Tab-double-click then

  • 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.