Toddler's Recent Forum Activity

  • So the Sprite Object can Load Image from URL, now, for example it loads from the file chooser and load the image from your phone.

    The sprite is a square and the picture is not a square, the "resize to image size" will expand the sprite beyond the size of the screen so NO.

    But the "keep current size" option, even though the image fits into the square, is stretched.

    Is there a way to scale it down RESPECTING aspect ratio ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wanted to integrate iAd inside my Free App but there are no visual placeholders, and since my screen resolution is not FULL RESOLUTION of iPhone 6, how do I know how exactly would the iAd appear so that I wouldn't either cover it with my button or have it end up covering my buttons ?

  • Say I have an AJax String like a.png|b.png|c.png

    And on and on, using TokenAt, I can split the string, but the question now is, how do I load it into a Sprite as Animation Frames ?

  • R0J0hound, you are the light bringer !

  • R0J0hound, thanks for being such an awesome guy.

    Now what if Mr.Garrison name is for example Gar's"a ? Would both the single quote or double quite method fail ?

    and to generate this output manually in php is pretty insane

  • Dear Brashmonkey, not that this should be the way, but assuming your method work, This will have to do.

    Now...How DO you URL Load images into a separate frame or animation as you have said ?

  • Dear R0J0hound, you are quite the expert here and I respect your opinion a lot.

    What you see in the sample only instantiate the sprite, but I assure you if the instantiate component is a TextBox, the text boxes can all have unique text across all of them, I know this because I am actually doing it for a massive game for a school that loads thousands of student data and when the text box are real time generated and fill with unique data, you don't see them all having the same data but instead retain the unique text given to the TextBoxes upon its creation in the for loop.

    The idea that it works like this across the board but the sprite doesn't behave like this really is a sign of a bug.

    and a pretty serious one I might add.

    In actual practice I am real time generating all the sprites calling them to load different student profile images.

    The textboxes generated in realtime are filled with their data and the TextBox behaves perfectly.

  • Problem Description

    If a Series of Image Sprites are Created in real time and then INSIDE the for loop calling each image sprite to load a different image, they will ALL load the same image.

    Attach a Capx

    http://expirebox.com/download/68be82f69 ... e1211.html

    Description of Capx

    CapX file plus the exported version, this will only work if running on server because of "Load Image from URL"

    Steps to Reproduce Bug

    • Just run the program and see the code, the image boxes should load alternate different images, but they ended up all loading the SAME images.

    Observed Result

    Just run the program and see the code, the image boxes should load alternate different images, but they ended up all loading the SAME images.

    Expected Result

    They should all be loading different images.

    This ONLY happens if the Sprite Object is created in a for Loop, it doesn't happen if the sprites are created in the Editor.

    This is terrible, please fix this.

    Affected Browsers

    • FireFox: (YES/NO)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    The Latest Version

  • This is the JSON, one of it:

    {"c2dictionary":true,"data":{"id":"1","Item_Name":"BushFly","Image_Path":"h.png","Quantity":"1","Description":"Monster","Seller":"Garrison","Star_Cost":"1","Category":"Monster"}}

    There will be many many more of this and I want to store them into a Single Array so that I can later extract one of the JSON out and put it into a Dictionary at a later runtime operation.

    Anyone knows how to do this ?

    Can Array in C2 Store JSONs or I have really hit a brick this time ?

  • Say I have an app that allow the device to only post once a day, is there a way I can retrieve the id of the device to store it and hence identify it on the server side that it should not be posting again ?

  • Thank you to the both of you

    But it doesn't and wouldn't work for my JSON, my JSON contains an Array within an Array with Key Pairs

  • Thank you !!!!!!!!!!

Toddler's avatar

Toddler

Member since 19 Jan, 2012

Twitter
Toddler has 1 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Email Verified

Progress

14/44
How to earn trophies