GameThirsty's Recent Forum Activity

  • 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" />

  • Any help is appreciated.

  • Hello

    Im trying to use the example given in Construct 2 that allows webcam snapshots, I got it to work on my laptop webcam.. however I tried uploading the HTML5 version to my personal web server, it uploads and I can display it on my mobile phone, when I go to click "Get Webcam" it does not prompt me to allow the page to use my phones camera.

    Is there something I am missing?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone with knowledge in this area would be good help

GameThirsty's avatar

GameThirsty

Member since 29 Nov, 2012

None one is following GameThirsty yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies