Ghengis's Forum Posts

  • Thanks Kyatric, not sure why it would do that but I'll look into it. The event should only get called each time the post score button is clicked. At any rate, it looks like the score got submitted once only.

    A bunch of other things I want to improve upon but C2 has met my expectations so far.

  • Since picking up Construct 2 about a week ago it's been a really great learning experience. I am completely impressed by this program and look forward to the final release.

    Here's what I've made with it so far.

    <img src="http://www.jtadeo.com/scirra/cashroll/cashrollscreencapture.png" border="0">

    It's isn't optimized but my goal was to try my hand with Construct 2.

  • Can you show me step by step? That will be a great appreciation.

    I've been working on my game the past couple of days since picking up Construct 2 and it uses the AJAX object. When it's done, I'll submit a tutorial on how I did it.

    There may already be a tutorial in the works as I understand someone was working on one. Either way, I'm a couple of days away from getting my test game out and you can see it working I hope.

  • But the AJAX.LastData doesn't returning any data.

    If it doesn't appear to be returning data then you may want to check the page that is suppose to be returning the data. If the page is throwing an error or returning blanks, then yes, the AJAX.LastData will not return anything.

    If the page is returning or showing data, then it may be that the events you've set up in your game is not setting or assigning the AJAX.LastData payload to your target object. For example, a text box that keeps track of scores or users.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • At the beginning all the construct thing was open source and now it is no more.If i have to spend for downloading construct standard then why should i prefer it to gamemaker?

    I personally think the price of $32 for an early adopter license of Construct 2 is a gift.

    Try out the free version and see for yourself how powerful it is.

    Good luck!

  • But how will I get the specific data. For e.j in

    http://www.mysite.com/receiver.php?action=highscore&username=Tom&score=280

    how will I get the score which is 280 and assign it on a text?

    When you make a request to the page, the output of the capturing page will stuff the result then send it back to the calling page. In this case, I assume your game.

    You can access the payload by using the AJAX object as in:

    AJAX.LastData

    You can then set that data to a text box or pass it over to another variable in your game.

  • I did the same technique except I placed my event from a button click. The beginner tutorial is a must read. It was really helpful.

  • The license file has to be at the root of the Construct2 folder. Check to make sure it's there.

    The other thing you might want to try is download it again. I can't remember if it was sent zipped or not. But it has to be unzipped so that you end up with c2license.txt.

  • Yes, thanks for the capx. I've been going over some of the functions for C2 and there doesn't seem to be the basic "bounce" function. No box2D either?

  • In full disclosure, I am by no means an expert with Construct 2, I just finished the tutorial a couple of hours ago. So someone out there may have created an random level generator or something.

  • So what you're saying is that I have to have world's premade and can set some events so that a specific world spawns when specific variables are chosen? At like a load up screen?

    This is one way of doing it and yes a premade world. Unless you've got some crazy algorithm that will automatically create your worlds on-the-fly, which would be pretty cool.

    The load up screen could be where the random event gets fired.

  • You could use something like:

    floor(random(1,4) to generate a number that would relate to your world.

    For example, If you called your worlds:

    world1

    world2

    world3

    world4

    You could do this to capture the name of the world:

    "world" & floor(random(1,4))

    The result would be something like world1, world2, world3, world4. You can then concatenate that to a URL like this:

    http://localhost/" & object.property

    If you were to stuff the value in a text box, you could do something like this using the Browser object:

    Go to "http://localhost" & Text.Text in a new window("NewWindow")

    The result of the above would be something like this:

    localhost/world2

    Just make sure you have a corresponding directory on your server. In this case, a directory called world2 with the index file in there.

    You would need a way to fire that event, for example a button. It cold be anything. Even a portal or something.

    In terms of storing the variables, you could use an Array object.

  • I'm working off a localhost using WAMP, it's free and easy to set up. When I'm ready I'm going to try it on the server and see how it goes.

  • HOW.......

    Do I have a few random fireballs starting from the right of my screen wiz across my platform at random heights, maybe hitting my player on his platform from time to time.

    Many Thanks

    I'm doing this tutorial now:

    scirra.com/tutorials/37/beginners-guide-to-construct-2

    I'm at the part where it talks about spawning monsters etc. I think it might be helpful with what you need. instead of monsters, you can spawn the fireballs.