IndieKiwi's Forum Posts

  • Alright, thank you guys. I change my xml file and now it's properly loaded.

    However,I get back now to my main question: can I just load the node that is equal to my global variable (named "Stage") ?

    Actually it only load the first node of the xml.

    I try different sting value like

    XML.StringValue("/stages/stage[ID='" & Stage & "']/name")[/code:a8uxp7cm]  (I get that from another topic) but i fail...
    

    This should work

    "/stages/stage/ID[contains(text(), '" & stage & "')]/following-sibling::name/text()"[/code:a8uxp7cm]
    ---
    
    If you designed your xml like below might be easier
    
    [quote:a8uxp7cm]<stages>
    <stage id="1">
    <name>The First Stage</name>
    <Level1>5</Level1>
    <Level2>500</Level2>
    <Level3>5000</Level3>
    </stage>
    </stages>
    
    
    [code:a8uxp7cm]"/stages/stage[@id='"&stage&"']/name/text()"[/code:a8uxp7cm]
  • If you want it semi-permanent (even if they close and open the game) add the WebService object and set a localkey with "1-layout" to start. on each map advancement, increment that name. When choosing the layout to load, make sure that the layout name is corresponding to that value ("1-layout). When you are ready to give them the next layout, set it to "2-layout"

  • Nice!

    How did you export it? I'm wondering which android export type is the best to enable the leaderboard and achievements on google play

  • Its possible already, you'll need

    1, AJAX object to make requests

    2. A server running a server side script like in PHP or asp.net

    3. And a SQL database.

    There are other ways, eg on Android you can use the GooglePlay login and make them sign in, and use the googleid as the identification, that way you won't need to worry much about security

    Can this be deleted please, Its too big in resolution and for some reason i can't login to the arcade

    http://www.scirra.com/arcade/addicting- ... lat-bubble

  • > Hi I am trying to work out how to use Ajax and I am stuck on the POST side of the line for Construct2

    > this is the .php

    >

    $Username = mysqli_real_escape_string($con, $_POST['Username']);
    > $Password = mysqli_real_escape_string($con, $_POST['Password']);
    > 
    > $sql="INSERT INTO members (username, password)VALUES ('$Username', '$Password')";
    > [/code:3e2k85z8]
    > 
    

    You've probably figured it out now, but '$Username' takes the string literally (when using single quotation marks), it should be "$Username", and in this case it may also simply be $Username as other text isn't appended to the string.

  • Not sure what exactly your stuck on...

    If it is the php part; post_['name'] doesn't look correct. Try $_POST["name"]

    If that isn't the problem then:

    1. Can you output textbox1.text somewhere to see it is getting the correct text?, you'll need to url encode it so that it doesn't cause problem with spaces and special characters!

    2. Can you post the php you have so far if the problem is there?

  • I think inverting it won't work, but adding a "ELSE" works

    So like

    Every x Seconds + Touching Sprite - Do nothing

    ELSE - Lose energy

    If the else repeats too much, you may also need to duplicate the every x seconds with the else.

  • Oh cool! Have you tried to apply the same collision polygon to all animations and frames so that maybe you can keep the pause animation, but it doesn't detect changes collision-wise

  • I got to over 6000 standing in the corner

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great job! Are you planning to make it level based or survival in one level?

  • Its the player platform behavior not triggering any events to make it move. Maybe something like set-y to "player.y - 1" to give it a kick

  • Getting rid of the white bars would either distort (stretch) or crop the game.. If u published it as a native app it wouldn't have the browser url bar and looks like it would fit perfectly

  • I experienced this bug on my pc on the first thing i made with c2. It would teleport off screen to the right so i ended up adding bound to layout for the player object... At the time i thought it could be related to the animated sprite collisions or the sprite size changed from the default in relation to the x axis correction code from the sample capx, but that probably isn't the case. I would be interested in how this can be fixed too.

  • I don't think you can do that, have you tried changing the "Initial State" property for the Solid behaviour on the step to Disabled