Joe7's Forum Posts

  • What do you exactly mean? I can make a family of Text-objects. I suppose you cannot merge different object types.

    greet, Joe7

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi,

    is there a shortcut for exporting?

    If not - is it possible to implement one - eg CRTL+P

    greets, Joe7

  • ok. haven't seen that's already built in.

  • Hi,

    this is a plugin for replacing character(s) in a string.

    There is only one expression <img src="smileys/smiley1.gif" border="0" align="middle"> :

    replaceChar("oldCharacter(s)","newCharacter(s)","theText",0 or 1)

    0.. replace only first match in the text

    1.. global replacement

    charRepl - Demo, Plugin

    All suggestions are welcome. <img src="smileys/smiley2.gif" border="0" align="middle">

    Joe7

  • What do you do to include the .js file when the project is exported?

    Nothing. <img src="smileys/smiley17.gif" border="0" align="middle"> The scriptfile has to be somewhere where it'll be found - e.g next to the index.html (->write only the filename in the properties) or in a folder next to the index.html (e.g myScripts/myScripfile.js).

    you can also refer to a scriptfile somewhere over the rainbow in the properties of the plugin: dl.dropbox.com/u/31151399/Construct2/Examples/callGoogleMaps/myScripts.js

    http://dl.dropbox.com/u/31151399/Construct2/Examples/callGoogleMaps/myScripts.js

  • Thank you Joe7 It looks like I was looking for.<img src="smileys/smiley1.gif" border="0" align="middle">

    Can you tell me wich plugin I need? I can not open this exemple.

    Plugin Random Array

  • you can use the Randomized Array to do the shuffling automatically on start

    Is there a tutorial that explains step by step how to use this array object?

    I have tries to self explore but without sucess.

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

    Have you looked at the example?

    Example Card shuffle

    it' not very short and tricky but should explain how to use the plugin.

    Joe7

  • I think that loading map data is easier with javascript:

    Call Google Map

    Joe7

  • jQuery.getScript(this.nameOfExternalScript, function(){});

    this line looks nice but was bad for other browsers as firefox

    • i've changed it now and load the external file with pure javascript+dom

    => now the loading of the external-script should work <img src="smileys/smiley2.gif" border="0" align="middle" />

  • hi Wastrel,

    have you changed the initial value of the Plugin to: myscript.js

    (the name is case sensitiv)

    you should place your script file next to your index.html

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

    hope that helps, Joe7

  • As far as I understand the Ajax-Plugin you need a Webserver to response => php - which is executed on the server.

    For executing javascripts(which will be executed on the client) i've written a small plugin:

    see it here: Plugin CallJS

    if such local(on the client) script-execution is possible with the ajax-plugin let me know <img src="smileys/smiley2.gif" border="0" align="middle">

    greets, Joe7

  • hi,

    a plugin for executing Javascripts in runtime.

    (The plugin doesn't work in preview mode.)

    [Update]

    now the external javascriptfile-loading should work in all browsers <img src="smileys/smiley4.gif" border="0" align="middle">

    [/Update]

    callJS - Demo, Plugin, example Scriptfile

    another example: Call Google Maps

    The Plugin executes scripts/functions

    #) written in an external javascript file - ie myScripts.js

    #) coming out from construct - ie: 2+3+4 or the example with the browser name in the demo - you can write any script in a textbox and then execute it

    All suggestions are welcome. <img src="smileys/smiley2.gif" border="0" align="middle">

    Joe7

  • Hello Pode,

    yes, i've changed nearly all in the new version and the versions are incompatible - they have a different datastructure for saving values. <img src="smileys/smiley2.gif" border="0" align="middle" />

    1) The new version uses an array with only one dimension - width.

    2) The old version is based on the Array-Plugin (you have a 3d-array but random array-Plugin uses only the first dimension).

    => But you can use both versions together, when you need it - ie to port your project to use the new plugin version or to stick with one project at the old version. <img src="smileys/smiley1.gif" border="0" align="middle" />

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

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

    Joe7

  • Plugin is written. <img src="smileys/smiley1.gif" border="0" align="middle">

    passC2Value

  • Hi,

    the plugin passC2Value allows you to pass a value from Construct to the parent html-site and vice versa. It's a little tricky and you should'nt be afraid of modifying html-code. <img src="smileys/smiley1.gif" border="0" align="middle">

    example

    plugin

    Example 2 - Calc with javascript with values from C2 <img src="smileys/smiley2.gif" border="0" align="middle">

    Info: The plugin will not do anything in the preview, because in the local preview aren't any for the plugin needed variables - see below.

    Have a look at the Html-Source of the example sites. After exporting your project in Construct2 you have to modify your index.html:

    0) open your index.html with a text-editor (ie: notepad, notepad++)

    1) copy the Html-Source from an example site and paste it in your index.html => save the file

    if ('more than one passC2Value-Plugin used' or 'changed the initial values of the plugin')

       2) modify the variablenames as needed in the file index-html

    (the variablenames are the initialvalues of the Plugin)

    Have fun, Joe7