cow_trix's Forum Posts

  • Hey Ash. Occurs in both kyatrics demo and my own projects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Same here. Screenshots of the error:

    <img src="https://dl.dropbox.com/u/1378330/001.jpg" border="0" />

    <img src="https://dl.dropbox.com/u/1378330/002.jpg" border="0" />

  • I'm just gonna chime in and say great work! Looking forward to getting the CocoonJS support working as well.

  • Well I believe Ashley's done everything he can on his end. As he said, get in contact with ludei or AppmobiTyler about it.

  • Weird... Ashley's already got a whole bunch of code for dealing with DirectCanvas...

  • Righto. I might have a fiddle with the AJAX plugin.

  • Hey Joannesalfa. The inbuilt AJAX object fails in both DirectCanvas and CocconJS for me. With DC it results in a black screen, and with CoccoonJS it just doesn't do anything. So while both platforms, in principle, support AJAX, I was more referring to it's implementation in Construct.

  • Hey guys.

    Does anyone know how to get AJAX working on either AppMobi DC or CocoonJS? Or any other way to communicate with a server?

    Cheers!

  • Hiya xenoma. I'd be happy to take a look at your .capx if you want, it's a bit hard to say what could be going wrong.

  • Haha! Great write-up Aindovin! Yes, that was pretty much the jist of it. I liked the effort you put in to that! Cheers!

    Rory - lol

    On another note, the feedback for this has been overwhelmingly negative - something I find quite interesting. Ah well! Forever forwards!

  • Hiya Aindovin. Interesting interpretation. Yes, that's the end. You only get to play it once.

  • <img src="http://www.lrtw.net/games/bytesized/Freelove/ICON.png" border="0" />

    Hi there.

    This is the first of hopefully many "bite-sized" games, that should only take a few minutes to play. It's called "Freelove", and I'd love to hear what you think!

    Play it here:

    kongregate.com/games/cow_trix/freelove

  • Hiya podpathos.

    The logic is "falling through" - events are executed one after another, top down to the bottom. The issue you have here is that subevents do not know when you are using them as a switch statement - which is what you're trying to do here. There is no implicit break after a subevent, so Construct just keeps on executing.

    Go through your event in question logically with the non-working version:

    On any click, C2 does the following comparison:

            if(active == 0 & c == 0) then (active = 1 & c = 1)

    Then C2 does the next comparison:

            if(active == 1 & c == 1) then (active = 0)

    But we just made that true with the last event! So this event will always execute - and active cannot equal 1.

    The solution to this can be what you posted as working - don't place events that are dependant on the outcome of other events below those events. OR you can use local variables. Have a global number, and test with each subevent that that number is 0. If it's not, it won't execute. If it is, execute the action and set the global number to 1. This guarantees only one event will ever execute in a subevent branch.

  • Hi gies. I deleted the keyboard object, inserted a new one, and redid all my events. That solved the problem for me, so I think it was something with events.

  • Sorry guys! Should be working now.