joxevc's Forum Posts

  • Ok thank you, it makes sense

    since tap is defined as a touch and release in quick succession in the same location and with a moving sprite I supose it's difficult to happen!

    I've tried with touch and works fine!

  • Hi all,

    I'm just trying to detect tap on a moving sprite but it fails so often. I wonder why? I'm using a 48,48 sprite... is it too small??

    I'm using bullet behavior to move the sprite.

    Here's my example:

    https://dl.dropboxusercontent.com/u/718 ... Bullet.zip

    thank's in advance for your help,

  • Hi all,

    A newbie trying to use an external API using AJAX...

    Need to set the Access-Control-Allow-Headers (to at least "X-SecretKey, Content-Type").

    How can I do that?

    Thanks in advance,

  • got it, it was so easy!!

    I forgot to set headers before post data... XD

  • Hi all,

    I'm trying to use PlayFab API using AJAX but I dont get any response....

    In the API documentation this is the example I have:

    POST https://[TitleID].playfabapi.com/Client/RegisterPlayFabUser

    Content-Type: application/json;

    {

    "TitleId": "1",

    "Username": "theuser",

    "Email": "me@here.com",

    "Password": "thepassword"

    }

    How would you do to use this API with AJAX?

    Has any of you tried PlayFab API with C2 with success???

    Thanks in advance

  • Looks a bit hidden now!! Thank you all !

  • Hi All!

    I recently updated C2 and now when I try to export to Android I don't see how to...

    I only have (cordova, blackberry, tizen and Amazon app store)

    I don't see cocoon and other options I saw before

    Any idea of what's happening?

  • Ohh how easy it was!

    This is my Php code

    <?php

    header('Access-Control-Allow-Origin: *');

    header('Access-Control-Allow-Methods: GET, POST');

    echo "Hello World";

    ?>

  • Using Ajax I'm trying to get data from a php file with no results. Since the php file is in another domain I guess I have to enable Cross-domain. I try header('Access-Control-Allow-Origin: *') but it does not work.

    It would be nice to have the source code of a working php file

    Does any of you have a working example of that????

    Thanks in advance!

  • Oh thanks again, families would help!!

    didn't know that feature in Construct 2....

  • Thanks for your reply!,

    In your example all the good ones are an instance of the same object and have the same name, right?

    But I was wondering if it is possibe to do it with different objects, as in your example lets say we have 3 different good ones (square, circle, triangle)

  • Hi all,

    I'm really new to Construct 2 and I wonder if it's possible to reference an object by its name.

    let's say I have a spritePlayer1 and I want to know if it collides with a spriteWall.

    In this case I only have to set the condition:

    if spitePlayer1 collides with spriteWall then do something....

    But what if I have more spritePlayer? 10, 50, 100???

    is it possible to reference those sprites by its name so I dont have to set a condition for each spritePlayer???

    if spritePlayer.name="five" collides with spriteWall then do something..

    Thanks in advance...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot Eisenhans!!! that definetly worked for me and saved mi life!!

  • Hi all,

    I'm working on a plattform game and I'm using the scroll-to behaviour in my object/player. Everything works fine, the view is centered in my object/player.

    When I have 2 objects/players with scroll behaviour enabled the view is centered at the midpoint of the two objects according to the scroll-to behaviour documentation.

    I'd like to scroll to one player and then to another player in different parts of the game but if I dissable scrollto behaviour in one of the players It justs keeps centering the view at the mid point of the 2 objects/players.

    Is it possible to do what I want?

    Thanks in advance,

  • Thanks! It works