Joe7's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Hello,

    perhaps somebody needs some infos how this can be done - even when you're not on a win 7 <img src="smileys/smiley2.gif" border="0" align="middle">

    To play sound in browsers with ogg-support(Firefox,..) and brothers without ogg-support (IE9 on Win7,..) i've done the following:

    1) import the ogg-File in C2

    if (not Win7): 2)convert the ogg-File to .m4a (ie with fre:ac)

    3) import the .m4a File in C2

    C2 gives the m4a file the name soundExample2.m4a so i renamed it back to soundExample.m4a

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Examples/SoundExample/howtoPlaySoundForIEAndOthers.png" border="0">

    hear example

    download capx

    Joe7

  • Exactly that was my problem.

    I've converted the soundfile to the wrong format ".aac"

    Now it works with encoding to ".m4a" .

    Yes -its annoying <img src="smileys/smiley2.gif" border="0" align="middle" />

    thanks, Joe7

  • hi,

    how can i import an aac-file without converting to ogg in C2 on Win Xp.

    Is this possible?

    C2 always trys to convert the aac-file and doesn't allow me to simple import the file (readonly doesn't affect).

    Thanks, Joe7

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