99Instances2Go's Forum Posts

  • Like this ?

    https://www.dropbox.com/s/dql04t0ylz9zl ... .capx?dl=0

    Watch out with things like that second event. It can not overlap door 1 AND door 2 at the same time, so that can never be true. And it can not (visual) jump to the 2 places, only the last set position you will see happen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pick by comparison picks when the expression meets a value (value = expression, expression = value)

    Pick by evaluate picks when the expression returns a true (boolean), or a 1.

    Pick by evaluate wil not pick when the expression returns a false (boolean) or a zero.

    Wich one to use ? In fact they are the same, just differend ways of inputting the expression/values/evaluaters. Besides that the Pick by evaluate can also handle OR's, well any expression that returns a false/true or a 0/1.

    Example. Pick by comparison with a expression : sprite.x and a value 500 and the evaluator "<" is exactly the same as a Pick by evaluate with an expression : sprite.x < 500 (returns true when met, false when not)

    But Pick by evaluate can do much more, see example in the manual:

    Object.X > 100 & Object.Y > 100) | (Object.X < -100 & Object.Y < -100

    | means OR. & means AND

    But Pick by evaluate can also test instance variables in the form of a boolean.

  • There is also a dedicated plugin for cars.

    Probaly suits you more.

  • You still cant spawn it middle in that object and have that condition that goes for collissions with that object. Spawning will not solve that. I dont know what you want to do with it, makes not sense to me. This is why i can only say something negative. Something positive, as in solving your problem, i cant. I dont like that myself, sorry.

  • Same thing Zebbi (in my eyes), i see always the Two Same Things.

    1/ A lot of poeple doe things like this, for example. In the first event they check if something moves right an some other condition. If true they set it to move left. In de next event they check if it moves left (forgetting that in the previous event they made it move left)

    So, they make two events in a row, and the first event makes the second always true.

    2/ At the same time (especialy in OR blocks) they pick some objects. In de next (same level or sub level event) they filter those picked items in a way that the condition is true, but there are no objects left in the picklist to feed the actions.

    It is usaly not a case of construct having a flawed event system. It is usaly not carefully coded. In a lot of cases you are better of with two seperatly events then with an or block. The or is mostly lazy coding, because you dont have to duplicate the actions. Althaught, less event should be encouraged, i know.

    So, in my opinion, allowing ANDs in an OR block will get even more poeple confused, when they seem to be confused allready. But i am guilty too, i still fall in those traps. I dont need more traps.

  • My example was correct. It is you who does not understand.

    Your ball cant act as a ball, it has square colission polygones.

    You move an object middle in an object and then 'on collision' with that object you want to do something. I have now idea how this can result in something 'physical'. Other then generating 'black hole forces'.

    You dont move it with physics (That would be ofcourse inpossible) In reality, in a world ruled by physics, when i magicaly and instantly move a tennis ball middle into you brain, what would happen ?

  • AJAX

    • Scores on a website - LINK
    • Scores on a website 2 - LINK
    • Highscore table - LINK
    • AJAX tutorial example - LINK
    • How do I pull variables out of a PHP page using AJAX ? - LINK
    • Ize's AJAX/PHP practical "Online Highscore" example - LINK
    • More about using PHP - LINK
    • Use GameJolt's API in C2 - LINK
    • Various questions and answers on using AJAX with server-side scripting to make an online game - LINK

    But, if you attent to do things that a normal secured browser will not allow, i cant help you.

    If its gonna be cross domain, then you gots look for that.

  • I looked on Youtbube for the game you mentioned. Its just 1 bar. No rope.

    So i guess the principle is close to something like this:

    https://www.dropbox.com/s/hluqnlm5hjp7g ... .capx?dl=0

  • Use you own sort routine ?

    Two routines listed in here with capx. You will see, its pretty easy. Dont run away from it to fast.

  • I just know how to read json but I don't know how to write all this data.

    plugin-json-import-export-generate-edit-inspect_t100042

    Besides that, you can get the json from arrays and dictionarys. Fill an array, or fill a dictionary. Store its json in the local storage.

    https://www.scirra.com/manual/188/local-storage

    https://www.scirra.com/manual/108/array

  • I dont understand that, when you insist to make layout 160*120 & viewport 160 * 120, you can get farther away from an object then the diagonal of that.

    I am pretty confident that my last capx works very nicely, in the room that you wanted it to work.

    If it does not, then you changed the rules. Tweak the audio object just as i did, make the max distance bigger.