darkstar's Recent Forum Activity

  • Wrote a plugin to extend the functionality to a expression that could be evaluated and return.

    This ended up being the least painful way to do this. I was using Cocoon, but have just recoded everything around Ejecta.

  • Does this work from an iPhone?

    this is what i get

    TypeError: 'undefined' is not a function (evaluating 'window.btoa(

    ypeError: 'undefined' is not a function (evaluating 'btoa(

    where is the btoa object? how do i access this from? Don't understand why it works in C2 and chrome but iPhone spits out the i don't know this object error

  • I'm trying convert the below in a string that I can then bae64 encode using btoa( myString)

    But i can't for the life of me get the below Json string formatted in a way that i can run the btoa function on it.

    {

        "event": "Signed Up",

        "properties": {

            // "distinct_id" and "token" are

            // special properties, described below.

            "distinct_id": "13793",

            "token": "e3bc4100330c35722740fb8c6f5abddc",

            "Referred By": "Friend"

        }

    }

    I've tried using \n to replace all the carriage returns. and "" for all the " and still i can't get this to work.

    Help!

    Would be great if C2 could handle JSON in the editor. The AJAX Object is kind of crappy to deal with and for other projects i've written my own plugins to get around this.....

    Having a bad JSON formatting day. Please help

  • Spoke to soon....

    cloud compiled version doesn't work grrrr..

    this is annoying

  • just noticed that there is a physics engine property on the cocoon object.....

    guess that's what you guys meant?

  • Just found the problem I was having. Seems like a referencing error in the code that is generated by Construct 2.

    I was getting the problem "TypeError: 'undefined' is not an object ('evaluating window.Box2D.Dynamics')

    unzipped my Cocoon export file.

    1. Unzipped my Cocoon export zip file
    2. Opened the c2runtime.js file
    3. Searched for "window.Box2D"
    4. Deleted the "window." portion. As the window object doesnt' tie to Box2D as far as I can tell from the rest of the code
    5. zipped everything back up. (make sure you zip all the files to the root of the zip, else the runtime will fail)
    6. Upload you app and test
    7. hopefully it's all working!

    <img src="smileys/smiley4.gif" border="0" align="middle" />

  • BAnyBudde

    I understand your frustration, but this has been an issue for a while now, and is out of Scirra's hands for the time being. CocoonJS was updated which appears to have caused some errors.

    I'm sure the team are working as hard as they can to make sure things are smooth. For now, you'll either have to switch to the older physics engine with Cocoon, or just wait a little longer.

    I've been waiting for this for approximately 3 months... but it's given me a lot of time to polish up my game.

    Sorry I couldn't be more help.

    How do you switch back to "OLDER PHYSICS ENGINE with cocoon"

    Would appreciate your input. Thanks

    <img src="smileys/smiley17.gif" border="0" align="middle" />

  • I get this error when trying to call an Ajaxpost

    Refused to set unsafe header "Content-Length"

    with this value in the data field:

    "{""name"": ""Construct2"", ""score"":""300""}"

    How do I set the headers parameters as the plugin doesn't make this available or is there another plugin that post Ajax requests with header configurable options?

  • Hi I'm finding this really frustrating.

    I have a bunch of images which I have resized the canvas and export to png format. Each file is the same dimension, though the graphics that they contain vary in size. The background of all these graphics are transparent, but the problem I am facing is when i import the image, C2 automatically decides to truncate the size of the image. Leaving me with a bunch sprites with all different sizes when i really want them to stay the dimenions that they were imported.

    Not sure if anyone else is finding this of has a clever work around?

    When i go to resize the sprite (for scaling purposes) all the images end up resizing to irregular proportions.

    thanks

  • Anyone know how to reference an image as the background of a button in CS2?

  • Is there any update on a patch for this problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are there any plugins for iAds of Admob for construct that work in cocoon? or something else? I've been searching the forums and the only thing i can find is clay.io which i'm not even sure will work in an IOS app. (i've tried adding in support for the plugin, but nothing shows up when i compile for IOS/Cocoon. So is there any other advert support that i can use?

    Also are there any restriction of that will stop you being able to use the advertising plugin in the App store? <img src="smileys/smiley2.gif" border="0" align="middle" />

darkstar's avatar

darkstar

Member since 5 Jun, 2013

None one is following darkstar yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies