Joe7's Recent Forum Activity

  • In a plugin:

         exps.NewLine= function (ret, line1, line2)

         {

              ret.set_string(line1+"\n"+line2);

         };

    in c2: set text to myPlugin.NewLine("first line", "second line")

    ________

    In construct:

    set text to ("line1"&Newline&"line2")

    The word Newline isn't a text/string.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you link your plugin?

  • Have a look at the Call Javascript plugin.

  • Very cool. Now it's propable possible to save and load images in simple textfiles.. <img src="smileys/smiley17.gif" border="0" align="middle" />

  • If you own a license this should be easier possible with a family containing all three buttons.

  • A textbox gives you Text when you read it's output. If you want to get a number written in the textbox you have to 'change' the type of the value. If you want integers then it's possible with the expression: int(nameOfTheTextbox.Text) --> you get the integer, float works similar for decimalnumbers..

    the opposite: if you want to write a number in the textbox you can do this with set Text and the expression: str(4) or with 4&"" --> both make numers to text/strings

  • 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.

Joe7's avatar

Joe7

Member since 14 Oct, 2011

Twitter
Joe7 has 3 followers

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies