b781rev's Recent Forum Activity

  • I have successfully made a example where I can save and load data via AJAX without a lot of events. I will be posting my results as soon as I have everything organised the way I want them.

  • Try changing your php page to something simple like this:

    <?php

    echo "hello world";

    ?>

    And see if what that does. Are you using your own server or is it online?

  • Sorry about that I uploaded the wrong file:

    4shared.com/file/lPCGszyi/AJAX.html

  • Ok, here is a working example:

    edit: 4shared.com/file/lPCGszyi/AJAX.html

    jax.php contains the following:

    <?php

    echo "23|33|45|9900|27|77|".

    ?>

    Replace the period with a semicolon. Hope it works for you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wasn't worried about the php part, I can do that. I was just talking about the construct part. And the link for that example is not working. All I'm getting is a blank page.

    I don't have any PMs, and I can send them either. I don't have enough rep.

    And I'm working on the colors and font for my website. Haven't decided what I want to go with yet.

    edit: The link did workl

  • What are you getting syntax errors from?

  • Can you give me an example? I'm think I'm getting it, but I don't know. I'm going really fast on all this. And my computer is really slow. What do you think about my layout?

  • OK, this is the website I'm working on:

    My Website

    Right now I have the AJAX example I'm working on posted on it. It's calling jax.php and sending the request to get two different values from the same page. In a little bit I will post the source for contruct 2.

  • Ok, I'm working on this example, but I ran into a minor problem. It seems to me that you can only pull one variable at a time from a request. So far I have multiple events for each request. I'm trying to figure out how I can do this without so many events. But I can use the same server side page to call all the data. I will post what I have when it's done.

  • It's easy. When you send the call to the page just do this:

    "jax.php?level=" & level & "&score=" & score

    On your php page just call them like:

    <?php

    $level = $_GET['level'].

    $score = $_GET['score'].

    ?>

    I replaced the semicolons with periods because they won't show when I post this. And make sure there is a semicolon at the end of line 2 and 3. Then from there you can save to your database and call it back say when a user is logged in or something. If you can't figure it out I will repost a working demo when I get off work.

  • Well, html5 is newer and hasn't completely made its way through the web yet. And, yes, a lot of people still run older machines but it's a thin line on if you want to create games using html5 or not. I like it, and it's the future because the technology and graphics will only be getting better and better. You should also make sure everything in your game is organised well, not a lot of events running in your current layout by making sure they are destroyed when not on the screen. It's hard to tell why it could be running slow without seeing the game structure. Right now I'm using a piece of crap laptop and my projects run fine on it. I would just go and check how everything is setup. You have to make sure your events are destroyed properly.

  • no prob, don't wanna do sh*t without permission.

b781rev's avatar

b781rev

Member since 4 Oct, 2011

None one is following b781rev yet!

Connect with b781rev

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies