LittleStain's Forum Posts

  • It shouldn't be that hard..

    something like this should work:

    On key pressed if animation1 is playing set variable ComboAttack to 2

    on animation1 finished if ComboAttack is 2 set animation2 to playing

    else set animation to default..

  • is the arrow pointed right in the original image?

    is the origin of the arrow at the left?

    actually the origin doesn't need to be on the left, but it could be off in comparison with the arrow sprite..

  • You are going to have to use Ajax to send a string..

    There are some tutorials about communicating with mySQL through Ajax and php in the tutorial section..

  • I thought that was what you were trying to achieve, for I don't understand why your text should have issues..

    Here's a small capx with text append, would this work?

  • Another great way to fill an array is with the CSV2Array plugin..

    You can write the csv in excell or libre/open-office and add it to the project-files..

    It really helps me to visualize the array..

  • Wouldn't it work to append : ""&newline&text1.text

  • In this case, where all you actually want to save are the variables, why not use webstorage?

  • I'm not sure, but I think it isn't that important anyway..

    An immovable object doesn't need as much processing as a moving object..

    Only collisions with it are important, for it doesn't react to forces anyway..

    A sleeping object still reacts to collisions and probably the "is sleeping" will be turned of immediately on collision..

    So in a matter of speaking you could say an immovable object is always sleeping, but always awake is actually the same, for the calculations when awake or sleeping should be the same for an immovable object..

  • It ofcourse depends on what platform you're aiming at..

    I guess the limit lies more with the machine running the game than the engine with which it was made..

    Something running without lag on your pc, does not mean it will not lag on any pc..

  • If you can explain it a little better, you might get a better answer..

    What is a sleep value?

    What would you like to do?

    What is happening and what did you expect to happen?

    With the answers to these questions it would be much easier to help..

  • I think you should read up on how to use arrays..

    After the person has pushed submit, loop through the array to see if the word exists..

    filling the array could be done with the csv2array plugin..

    This also answers your second question, for it would be easy to select a "random" word from the array and display it..

  • 1 - on key pressed - player play punching animation

    2 - if opponent is within punching distance - opponent playy punching animation

    3 - opponent set direction to player.x, player.y

    4 - if person killed - add to global variable power, if global variable power is max and player press key - play special attack..

  • You could add an instance variable weapon to your player (either text or number) and set it to the weapon you want..

    player on collision with weapon one - set variable to weapon one (or if you want numbers just 1)

    and then something like this:

    player if variable = weapon one - set group weapon one activated..

    trigger once

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When objects are out of layout? I guess you mean out of viewport, because all objects are probably in the layout..

    It could be many things,

    The size of your images,

    A lot of events that are checked/executed every tick,

    collisionpolygons with too many points,

    etcetera..

    Can't really tell without seeing the Capx..

  • I really like this way of handling keyboardinput..

    Made this example for somebody else on this forum..

    all you'd have to do is make events for when keyboardinput is 6 - simulate pressing right, etcetera