danhezee's Forum Posts

  • 6 posts
  • I am using tokenat() to parse image urls into an array in a loop. I tried tokenat(DocViewer_pageuri,loopindex,newline), tokenat(DocViewer_pageuri,loopindex,"\r"), and tokenat(DocViewer_pageuri,loopindex,"\n")

    DocViewer_pageuri is a string of urls from the server.

    "example.com/image1.jpg\r
    example.com/image2.jpg\r
    exmaple.com/image3.jpg"[/code:2ty4h2b5]
    
    Then entire string gets placed into Array[0] instead of each url being placed in a separate element of the array.
  • I have an api built that contacts the server and gets a billboard message and tasks.

    billboard

    {"result":"success","returned":"billboard message"}[/code:2xwjghkx]
    
    [b]task[/b]
    [code:2xwjghkx]{"result":"success","returned":[{"id":"1","task":"blah", "description":"blah"},{"id":"2","task":"blah", "description":"blah"}]}[/code:2xwjghkx]
    
    I make an AJAX call,  and load it into a dictionary like so:
    
    [img="http://i.imgur.com/8T3al60.png"]
    
    When I set text to AJAX_RESULTS.Get("returned") for the billboard it will display the string, but when I set the text after calling tasks it displays "0".
    
    I tried Load from JSON string "{""c2dictionary"":true,""data"":" & AJAX_RESULTS.Get("returned") a & "}" into a different dictionary and tried to set the text to AJAX_RESULTS.Get("id") but that also returned 0.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Working on a math game with fireworks as you get more answers correct more fireworks appear on screen. Most of the artwork is temporary placeholders even the crates and background as I got them from opengameart and a free vector art site.

    In those screen shots I am using the blend additive effect which makes the particles bright and shiny but pretty much makes them all look white. I have done some experiments with other effects and haven't really found what I am looking for. If anyone has a good effects combo to make the fireworks look bright and shiny and keep their colors please share.

    Edit: uploaded smaller images

  • Can I use data uri as the url for the image as a way to cache images to be viewed offline, i.e. I can save the data uri's in an array and load them offline. Edit I dont have enough street cred to post url's I am using a article on css tricks about data uri's as a point of reference

  • Nevermind I saw the option to load image from URL

  • What I would like to do is load images from a server into a sprite dynamically based off of options the user chooses. Basically an image viewer. I don't know if it would be possible without custom plugin. It definitely doesn't look like you can use a sprite.

  • 6 posts