GameThirsty's Forum Posts

  • Looks like if you have more then 3000 friends you have no life, and you'd have to create a separate account. :p

  • I fixed it, setting animation to stop.

    However, this method does not put into account of how many friends a user will have in my app. That is a dynamic variable right? I wont know how many frames to create, example would be, if a user has 200 friends, and I only created 100 frames, it would break the system we have here.

    Edit: Unless I limit how many friends a user can have. But I wouldn't prefer that

  • I have this and it shows different images, but they all change to the same image. I have highlighted my change in red. I have set the frames too

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem with that is, the array changes dynamically. I am basically making a friends list inside Construct 2. So lets say I have 100 friends on my list, which is stored in a database, and I only created 50 frames in Avatar, then it would break that system.

    AvatarName and Avatar are dynamic.

  • The problem with that though, is what if I have 100 Avatar images? It would be a pain to manually create 100 animations

  • So I will have to create a different instance of Avatar for each loop run?

  • Hello, im ready to punch a baby- I have been working to get this resolved for 5 hours now, and I haven't been able to find a solution.

    What I have is an array, I create sprites called "Avatar" and what im trying to do is load an individual image for each sprite.

    On run-time it creates all avatar sprites, but when I go to load an image it loads the last Avatar name in the array.

    An easier way to say, is how can I load an individual image for each individual avatar sprite. In my loop, it makes all avatar sprites load with the same image.

    Here is the screenshot of my event sheet:

    Thank you for the help.

  • Like Ashley said, in order to bypass origin, you can do something like

    (inside all php files)

    <?php

    header('Access-Control-Allow-Origin: *');

    PHP CODE HERE

    ?>

  • Can get around it by using this inside your php code

    header('Access-Control-Allow-Origin: *');

    but it was not needed for any of my projects.

  • Hi there!

    I made a simple send to database, and receive from database example.

    Please make sure you host this on your web server, im using WAMP server, and localhost. I got instructions inside the example how to set up your new database and database table.

    Here is the link dropbox for the .capx project, and two php files, one sends the info to database, and one receives.

    https://www.dropbox.com/sh/rxzsl17f48gk6g1/4k2IccWhQb

    Just export the .capx project to HTML 5 and copy the files to your web server.

    If you have any questions, please let me know!

    <img src="smileys/smiley1.gif" border="0" align="middle">

  • I am sorry, but this is not the first time I have asked for help and have not gotten a peep out of anything.

    I will have to just figure it out, just like everything else I have asked help for. No big deal.

  • No one ever seems to help on these forums at all.

  • Hi!

    Is there a way to disable the zoom-out on my web app I am developing for mobile?

    What I mean by this is, when I am on my mobile browser, and I go to my Construct 2 app on it, I touch a text box, and when that happens, my keyboard for mobile shows up and zooms out one the text box. Is there a way to disable this zoom action and still use my mobile keyboard? Because it screws up my orientation of my app.

    If there is no way, is it possible to just make my own keyboard for the app so it eliminates the use of the software based keyboard on my phone?

    Thank you for the insight!

  • I got it- ill upload solution in a few.

  • I am in need of some help, any help is appreciated. I understand that PHP is beyond the scope of Construct 2, however I do know there are some experienced script programmers on these forums.

    What I have is a database named "test" and what im doing is sending an AJAX request from Construct 2 asking for a match between the text in FriendBox (which is a textbox in Construct 2) to my database and return the echoed result into a text plugin named FriendsText.

    However, I do have it all setup, and when I try to put something inside the FriendBox textbox and send the AJAX request to my PHP file, it returns "/ br" every time. I am not sure why it is returning that instead of returning the username from my database.

    Here is the screenshot where I declare an AJAX request inside Construct 2:

    <img src="http://img703.imageshack.us/img703/4387/fwhk.png" border="0" />

    And here is my PHP file that should return username:

    <?php

    $username = $_GET['fname'];

    $con=mysqli_connect("localhost","root","","test");

    // Check connection

    if (mysqli_connect_errno())

    {

    echo "Failed to connect to MySQL: " . mysqli_connect_error();

    }

    $result = mysqli_query($con,"SELECT username FROM test WHERE username='".$username."");

    while($row = mysqli_fetch_array($result))

    {

    echo $row['username'];

    }

    mysqli_close($con);

    ?>

    This is the value that is returned when I run my program in Construct 2 over a public hosted server:

    <img src="http://img27.imageshack.us/img27/8505/546i.png" border="0" />