Joe7's Forum Posts

  • Ajax tutorial to make you familar with the ajax plugin

    --> How Do I - Frequently asked questions - "Ajax" - linked examples..

  • In the linked post is a screenshot of the javascript lines.. but sending score and.. is very easy with the built in ajaxplugin or if you want pass it per post with a custom ajaxpost plugin.. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have many possibilities for that:

    With the Id property

    or easier directly with ajax or ajaxpost plugin..

    There are some examples linked in the howto faqs<img src="smileys/smiley2.gif" border="0" align="middle"> and a tutorial for the ajaxplugin..

  • tnewhook

    It should be possible when modifying the runtime.js:

    Copy all codelines that live in the method acts.LoadJSON to the instance-constructor after the variable-initalisation: "instanceProto.onCreate"

    I'll look to this plugin asap - and then make a new release. If you're faster than me and want to share it - post it and I'll link it in the first post.

    Why I have done the loading with an action? My idea was, that it should be possible to reload the JSON-file whenever wanted. It should possible to modify it per ajax and the reload the new JSON-data with then plugin. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Does it work when you move the sprite with two actions to another place and then back? Should force two redraws - I suppose.

  • History - c2i:

    [Update3] c2i - v 1.3:

    1) The php-file 'createImg.php' gets now created from C2 when exporting the project.

    2) Demo - changed: The demo-project is forced via the project-properties to use the canvas2d renderer. --> should work now properly on whatever.

    [= current workaround to avoid the WebGL-bug - see posts on side 2]

    3) Refactored plugin-sourcecode - no improvements to recognize during edittime but the plugin has now fewer codelines and works as the last release.

    Demo - canvas/sprite/screenshot + Plugin(v 1.3)+capx

    ____________

    [Update2] c2i - v 1.2:

    Screenshots are possible now

    Demo - canvas/sprite/screenshot + Plugin(v 1.2)+capx(WebGL renderer - if possible)

    Known bug: WebKit+WebGL:

    If WebKit-Browsers(Chrome) are forced with the setting in the project-properties to use the WebGL-renderer they create only blank images. Firefox has no problem with WebGL enabled.

    Workaround for now: Use the "canvas2d" renderer. This should work on whatever..

    [/Update2]

    ____________

    [Update] c2i - v 1.1:

    Now the saving of Base64-Strings to images is possible. Together with Pode's behavior "Extract Sprite to base64 string" it's possible to save sprites to images.

  • Outside C2 - index.html:

    I added the html/javascript-lines below after exporting the project:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/forum/passVarViaId/screenShotIndexHtml.png" border="0" />

    Inside C2: The TextBox in C2 has the ID myTextBoxInC2

  • aridale: Sorry, have forgotten it - I did't thought on that.

    It complains about the missing image that gets drawn on the canvas of the plugin.

    copy the following image in the export folder or replace it with an own (in C2 open the 'image-loading-dialog')

    canvas2image.png

    Wishy: I haven't implemented anything about jpg - hope that causes the error and that it's not a browser-"timeout"-error or something similar.. <img src="smileys/smiley2.gif" border="0" align="middle">

    Wishy -Textsaving: Yes, I recognized that with the "Text"-object too. Is this a problem? I suppose C2 handles the Text-object a little different when using canvas2d or WebGL renderer - or this comes perhaps directly from the renderer.. (I haven't implemented anything for the renderering of text in the plugin.)

  • ok.. for the old ones.. <img src="smileys/smiley2.gif" border="0" align="middle">

    example for r80.2 and newer

  • Change it in the "Project settings" - "First layout" (after click on the projectname on the right side..) <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Sorry, this is not possible.

    The id-property is a new feature in r85.. (see the 'Adds' for r85)

  • Got asked for an example. Here it is..

    example capx (r85) (you have to change the path to your webserver)

    score-php script (without the php-E-Mail-sending routine)

    Have fun, Joe7 <img src="smileys/smiley2.gif" border="0" align="middle">

  • tnewhook: Nope. Isn't implemented, it's a very simple plugin. Possible with "normal" arrays?

    [Edit]

    tnewhook: Random array has a "New size" action. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Thanks ranma for the tip.

    _____________

    HowTo - Preview and use custom-javascript-functions written in a scriptfile:

    (Local)-preview is still working all the time - but under the circumstance that the Scripfile is 'online' (- eg: Path: dl.dropbox.com/u/31151399/Construct2/Examples/callGoogleMaps/myScripts.js).

    I know that this is not nice and not userfriendly but on the other hand I think it's not the biggest problem to save in the scriptfile in a dropboxfolder. (capx)

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

  • CallJS - Preview:

    (Local)-preview is still working - under the circumstance that the Scripfile is 'online' (- eg: Path: dl.dropbox.com/u/31151399/Construct2/Examples/callGoogleMaps/myScripts.js) - not nice and not userfriendly but I think it's not the biggest problem to save the scriptfile in a dropboxfolder. (capx)

    'Hack' together HTML-outside-C2 and C2:

    I've only played a litte bit with that but with the new ID-Property for TextBoxes this could be possible - I suppose. (forumposts+capx)

    Perhaps those two 'hidden features' make the life for now a little bit easier.. <img src="smileys/smiley2.gif" border="0" align="middle">