Magistross's Forum Posts

  • Everything seems ok, unless Hp and MaxHP aren't number variables, there's no reason it wouldn't work.

  • It would be best to use a single object, and go for different animation and/or frame. You could then save the animation name or the frame number in an array, xml, or any other data medium you want, along with your other attributes.

  • I really don't know what was wrong, but I basically exported the same test project with no modification then suddenly the back button started behaving accordingly... D:

  • 2- If you are on r168 and exporting a universal app, you can use Construct 2's Browser object to handle the back button. It works natively now.

    That's the problem, I tried using the browser's back button trigger, but it never fire. Instead, the app goes into suspended mode.

    I did a simple test with a text object that displays a global value, a value which get incremented with each "mobile back button". Try as I might, every time I press the button (emulator or device), the app suspends, and when I resume it, the global value did not even get incremented.

  • hotcakes

    Could you provide me with an exemple of how you handled the browser back button ? Whatever I do, the damned button never triggers, and the app goes into suspended mode. I tested with an emulator, and my own device, same result !

  • One more shameless bump in hopes to get more input on this !

  • Try with the g flag, to make the search global.

  • Is the new Universal Windows Store export option compatible with this plugin ?

  • jayderyu I seem to have found what I was looking for with the listener "onbackclick" of the WinJS "app" instance. But I just can't seem to tell the c2 runtime to trigger the mobile back button event.

    I tried using the cr_getC2Runtime() function to get the runtime reference and then use the "trigger" method, but I find no way to reference the Browser plugin instance...

    Any idea ?

  • Wonder if this could help : http://stackoverflow.com/questions/2311 ... ckkeypress

  • *bump*

    Still looking for solutions here !

  • PhoenixNightly Yes and no, I want the back button to trigger something in my app. It seems my device intercepts any event using "On mobile back button pressed" to minimize the application. "On suspend" doesn't help either, pretty much in the dark here...

  • I couldn't find an answer anywhere, so I figured I might as well ask on the forum. Is there any way to intercept the mobile back button (or the search button for that matter), with the Windows 8 plugin ? I tried the classic Browser "on mobile back button pressed", but my phone kept minimizing the app.

  • I can't seem to be able to use the on back button condition anymore. Neither with the browser nor this plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • XPath use 1-based index, so to get the first question, use this :

    /questions/question[1]/@text"[/code:1z9wnwkk]
    For the 2nd :
    [code:1z9wnwkk]/questions/question[2]/@text"[/code:1z9wnwkk]
    And so on so forth.
    
    In your case you could just ditch the for each node and directly use the action set text to :
    [code:1z9wnwkk]XML.StringValue("/questions/question[" & sporsmal & "]/@text")[/code:1z9wnwkk]