Kyatric's Recent Forum Activity

  • It is so because at the moment you have a global variable acting as the "health counter".

    Once this health counter is null (0) you destroy all the instances "nemicosinistra" (not a peculiar one).

    To solve this, your health counter should be an instance variable of "nemicosinistra".

    When you test if the instance variable "health" of the object type "nemicosinistra" is equal to 0, then C2 will pick the instances which "health" variable is equal to 0.

    For this you can check back the beginner's tutorial which clearly demonstrate this principle in page 6.

  • Nice graphics, nice layering.

    The cheat option has disapeared <img src="smileys/smiley3.gif" border="0" align="middle" /> this is even harder.

    Good job though. This looks a lot like a professional game. All hails C2.

  • As stated in the license tutorial :

    on't forget Construct 2 is portable. You can install it to a USB stick, copy your license file to the install directory, and take your licensed Construct 2 with you wherever you go. Don't forget it's only for your use. You must not let anyone else use the license!

    So apparently the license is set to a person, not a computer.

    But don't take my word for it right now and wait a few days untill Ashley or Tom confirm or denies.

  • dcrew: Please read first: how to report a bug and add the asked specs, steps, capx.

    As it is this check failure sound like you are missing a ressource file (either image or sound).

  • Welcome all the newcomers to Construct's community !

  • By tweaking its CSS/styling code.

    Considering the file index.html in a default exported project you would have to remove

    <style type="text/css">
              canvas { border: 1px solid black; }
         </style>
    

    from index.html.

    More about HTML and styling in this tutorial.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem, you weren't troublesome.

    It just took a few posts to figure out what you were asking for and anyway I think this will be profitable in the future because I bet other members will ask themselves the same thing you did.

    Having the answer in the forum is never a bad thing <img src="smileys/smiley4.gif" border="0" align="middle" />

  • I moved this thread to "open topics", but I'm not sure to see the point of it.

    In benefit of the doubt I'll leave it opened for now, but what is the point of posting images from "The people behind scirra" droptank21 ?

  • If your PHP variable value is 5, then the value of AJAX.LastData will be 5.

    So you create a variable Level in Construct and assign it the value of AJAX.LastData (like I showed in my previous post)

    If you make another call, the value of your PHP variable will be returned to C2 still as the value of AJAX.LastData, so you can assign another variable to the value of AJAX.LastData.

  • With the expression "LastData" from the ajax object.

    . When the call to the page is done, the information collected is stuffed into the AJAX.LastData object where we can then consume it in our game.

    First page of the tutorial.

    You can assign a global variable to the value of Ajax.LastData.

    Action

    System -> Set global variable value

    Name of the var; value of the var : AJAX.LastData

  • It has to do with the positioning of the origin point.

    I tried to move the origin point in "camminadestra" animations to position it on the shield in each frame, and the movement work as intended.

    If you don't want to change the origin point, instead of using two instances of "tornaindietro", make one object for the left boundary, one for the right (with different names) and on collision with either the first or the second object, set the boolean (don't just toggle it) to either "true" or "false".

    This way you'll have a defined direction, and it doesn't matter how many times the ennemy sprite collides with the "detector" it will set it to one and only one direction.

    I hope I'm being clear, let me know if not.

  • You can retrieve datas from PHP, but in that case, it needs code in the PHP page itself that will send back said-variable.

    This is not the purpose of this forum though to deal about PHP.

    Try to search the keywords "webservice", "xmlrpc" and "PHP" on google. This is some of the way PHP can send back infos to an ajax call.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs