Joe7's Forum Posts

  • Pode: Really powerful and works perfect for sprites. In my opinion the most important object for extracting base64.

  • bjadams: plugin is on the way - c2i - canvas/base64 to image <img src="smileys/smiley2.gif" border="0" align="middle">

  • Pode: Now this plugin is usable with your Base64-behavior. <img src="smileys/smiley1.gif" border="0" align="middle" />

    : done <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Pode: The Ajax part is the saving - php creates from a base64 string an imagefile. Now I've seen your last behavior and I'll try to add another action to the plugin to save standalone sprites - should be possible now.

    On the webserver are the following files:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/webserver.png" border="0" />

  • Hi,

    this plugin saves the whole c2-canvas, a base64-string or a sprite via ajax(= a short php-script) to an image in png-format on a webserver.

    Because the images get saved on a webserver with php the plugin doesn't work in preview mode.

    • - - - - -

    History:

    1.1) Since version 1.1 it's possible to create PNG-files out of Base64-strings. Together with Pode's behavior "Extract Sprite to base64 string" it's possible to save sprites to images.

    1.2) Since version 1.2 customizable screenshots are possible.

    1.3) code cleaning

    1.4) supports WebGL

    1.5) works on Android via fallback-script

    • - - - - -
    • - - - Android bugfix release - - - -

    [Update5] c2i - v <font color="red">1.5</font>:

    [Add]Fallback for Android-Devices (ie 2.1,2.2,2.3,..?)

    The Plugin uses a fallback script when 'toDataURL()' has no native support from the browser - c2i2dataURL.js.

    <font size="1">On Android-devices only Opera works as expected and understands toDataURL() (-no fallbackscript used). The webkit-browsers on Android need the fallback-script.. </font>

    HowTo convince Android: Copy the file c2i2dataURL.js next to index.html

    Demo - canvas/sprite/screenshot + Plugin(v 1.5)-- demoproject (capx,exported project) + php-script + fallback bugfix-script

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/1.5.png" border="0">

    ____________

    [Update4] c2i - v 1.4:

    Plugin is completely rewritten.

    [Changed] WebGL-support - It should work now with both renderers - currently on desktop browsers (+ on Android - only with Opera).

    [Changed] Plugin is now a "world-plugin". If you don't want to see a "black canvas" in C2, give it an image-texture - transparent image should be possible.

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

    changed php-file (filename)

    __________________________________________

    Property:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/properties.png" border="0">

    Actions:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/action.png" border="0">

    Condition:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/condition.png" border="0">

    short overview how2use:

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Plugins/joe7_c2i/howTo/overview.png" border="0">

    Have fun and all suggestions are welcome <img src="smileys/smiley17.gif" border="0" align="middle"> ,

    Joe7

  • I suppose that the main problem will be to get some specific sprites. The whole c2 canvas to image should be possible - I've seen similar implemented for a canvas.

  • Webstorage saves locally on the device you use - eg phone. If you run the game later on a pc you have no access to previous local saved data on the phone.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The system object has an action create instance. Use this to create instances of the enemy and then move them with an action eg set position - to the right place. Capx what you have for details..

  • The tutorial ajax example shows how you can do exactly that.

  • Set the object inital property visibility to invisible. Create some instances in the layout.

    -> event on button clicked -> subevent foreach enemy -> action enemy set visible visible

  • Then ajax. It's not really possible to make a serious ranking without connecting the players and comparing their points or whatever.. <img src="smileys/smiley17.gif" border="0" align="middle" />

  • Fimbul Great. Better idea than mine. <img src="smileys/smiley2.gif" border="0" align="middle" />

    I thought at key1.key2.key3 but jquery syntax is much better. I'll try it but in the next days I've no time.. so if it's really important feel free to fork or change the plugin by yourself. I'look at it asap..

  • The manual says that you can open a demo.

    small online demo (capx)

    what do effects (mozilla) <img src="smileys/smiley1.gif" border="0" align="middle">

  • Without capx or some explaination with details it's really impossible to help you. Probably you've forgotten a condition when it counts "every tick" or something like that.

  • Perhaps the plugin passC2value could help you but I wonder a little about what you want.

    Why you don't use the C2 audio object. If you write your own code to play only an oggfile, IE users wont hear anything.

    [Edit] Ok, with the call Javascript plugin this is easily possible - but i've ignored IE9 in the javascript.

    demo

    external javscript-file

    Demo-capx (requires callJs-Plugin) <img src="smileys/smiley2.gif" border="0" align="middle">

    the whole project (zip)

    [/Edit]

    [Edit2]If you really want to write a script within the file index.html then you can play with the other plugin - passC2Value. The coding should be similar. Just mention that when you export from Construct then the index.html gets overwritten. <img src="smileys/smiley2.gif" border="0" align="middle">

    [/Edit2]