LittleStain's Forum Posts

  • Without more information this question can't be answered..

    is this a preview over wifi problem?

    did you export the game and upload it to a website?

    please provide enough information when asking a question.

  • I guess the ajax request isn't processed yet when you do the for loop..

    You should check if the ajax event is completed before you use the lastdata..

    create an event Ajax on completed "letras ab"

    put the system for loop as a subevent of that and all should work..

  • Did you add the mouse object to your project?

    right click on your layout

    insert new object

    Input - mouse

  • Add the audio object to your project

    And create the conditions for when the sound should be played.

    for example:

    player on collision with OtherCharacter

    audio play "hello"

  • you could use choose()

    on button clicked set text to = choose("this is the first line", "This is the second line", "this is the third line")

    another way would be to put the sentences in a dictionary object and use the TokenAt expression.

  • PhoenixNightly

    To get the distance between two points in pixels you can just use the expression - distance(x1,y1,x2,y2)

  • Short answer - No.

    Longer answer:

    You could check if x1 is the same as x2 and y1 is the same as y2,

    but if these are moving objects it will allmost certainly never happen.

    You could check if the distance between those points is less than a certain distance and have that call the actions ..

  • Add more conditions..

    for example

    give the player a boolean variable IsHoldingGun

    If the player is holding the gun set the boolean variable to true

    else set the boolean variable to false

    on a pressed

    --player variable IsHoldingGun is true

    player play animation Player(gun)run

    -- else

    player play animation Playerrun

    There are many more ways, but this is the most straightforward

  • It shouldn't be hard..

    The explanation is there to get the x-coordinates and y-coordinates to use in the zoom example from the referenced thread..

    In that example x and y of player1 are used and x and y of player2

    instead of using them you use the lowestx,lowestY and Highestx,highestY

    if there are two players, three players or four players shouldn't make a difference..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You are trying to play both animations at the same time..

    Both run left as glock run left have the same conditions..

  • Could it be the player(gun) is solid and the invisible player isn't?

    I can only guess what is happening, but that might cause the invisible player to be able to move while the player(gun) is held back by the wall..

    I've never had such things happen.

    It must be the strange way you have set things up..

  • There is a big chance the object is never exactly at x=2

    if it's at 2.1 or 2.05 or 2.2 the event won't trigger..

    so instead of using x=2

    you could use something like

    --object.x is between 0 and 4

    set object position x=2 and set speed to 0

  • It might be your origin-points or collision polygons are wrong, but could also be there is an event that's triggered unexpectedly..

  • Yes.. I don't understand the need for separate objects..

  • I always thought setting it to 0 pixel per second removed all deceleration.