korbaach's Forum Posts

  • when you open DevTools,what console shows?

    something like?

    or?

    OR?

    and..when you set Text to GooglePlay.PlayerImageURL how exactly looks URL

  • I think it is easier to calculate the difference.. if you use Date.now()

    [quote:taxz262h]The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00

    [quote:taxz262h]1 Minute =

    60,000 Milliseconds

    you can simply set variable with: Browser.ExecJS("Date.now();")

  • Search manual for Loops and loopindex

    [quote:3s2dvj16]loopindex

    Get the index (number of repeats so far) in any currently running loop.

    repeatPAT.capx

    this can also be accomplished with nested loops ..but for now...

  • [plugin] JSON

    ajaxJSON.capx

    [quote:2uqrhri7] Indiegogo does not allow cross-domain "grabs"...

    works for me...(now??!)..

  • Here's the .caproj file.

    https://www.dropbox.com/s/lp2bz9l2v0zm007/New%20project.caproj?dl=0

    Saving and sharing work

    The main project file in a folder project has the extension .caproj.

    Note this does not contain the entire project: it is simply a list of other files used in the project.

    If you want to share a project, the .caproj file is useless on its own - save to a single-file project (.capx) instead.

  • yes Lancifer you're right ...I was a bit lazy...

  • ..glad to hear..

    I've managed according to the tutorials to use the local json file through the files folder. Now I would like to try out hosted version of it.I've tried to use the AJAX request http://www.site.com/file.json, but nothing worked...

    so..let's say.. you upload json file on your site

    http://www.StanBond.com/gamefolder/file.json[/code:2ufvxgix]
    and than you use
    [img="http://lookpic.com/O/i2/997/i48LnMDP.png"]
    in [b]Preview[/b](on localhost) this request will most likely fail & in [url=https://developer.chrome.com/devtools#console]console[/url] you will see something like 
    [img="http://lookpic.com/O/i2/100/UXShPyYF.png"]
    you can bypass this ...with small PHP file(file.php)
    [code:2ufvxgix]<?php
    header('Access-Control-Allow-Origin: *');
    $myfile = file_get_contents('http://www.StanBond.com/gamefolder/file.json');
    echo $myfile;
     exit;
    ?>[/code:2ufvxgix]
    upload this in your [i]gamefolder[/i] 
    [code:2ufvxgix]http://www.StanBond.com/gamefolder/file.php[/code:2ufvxgix]
    and now  you  request
    [img="http://lookpic.com/O/i2/298/JDWRFZoK.png"]
    
    I really don't know if this is a good way....but works..
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • try:

    <?php
    
    header('Access-Control-Allow-Origin: *');
    
    echo date ("h:i:s");
    
    ?>[/code:2iidrdkd]
    
    [url=http://stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work]How does Access-Control-Allow-Origin header work[/url]
    
    [img="http://lookpic.com/O/i2/1386/BZlh9KVj.png"]
    
    [img="https://media.giphy.com/media/3oEjHWiGFxTVinXClW/giphy.gif"]
  • I do not understand,

    The Ajax settings in construct2 are

    ....

    Method

    "POST"

    I can not see another others i can change and this is already set to POST.

    Post to URL

    Send a request with data to a URL and retrieve the response. A tag is provided to match it up with the On completed, On progress and On error triggers. Construct 2 does not automatically URL encode the post data - use the URLEncode system expression to ensure the data is in the correct format for posting. Note post data is in the same format as a query string, e.g. "foo=1&bar=2".

    The method can also be specified: by default it is POST, but for some APIs you may need to change this to GET,PUT, DELETE,HEAD or another HTTP method.

    [quote:171anj5f]GET - Requests data from a specified resource

    POST - Submits data to be processed to a specified resource

  • let's say ViewportRight(0)=500 px so you have Sprite set width to 500 px

    now..how you steach a Sprite .. depends on the origin point position

    In the center:

    on one side:

  • too much blur..but anyway...

    counter.capx