Description

Use 3rd party js libraries (including JQuery), call javascript functions, access object properties and methods. Implement game objects, and algorithms in javascript.

Example Files

sample-7-0.capx (385.6 KB)

Example demonstrates how to call javascript functions and use aliases to get/set object properties and call object methods. See full description on plugin's promo page: https://readymag.com/valerypopoff/valerypopoff-js-plugin/

Version History

Version Size Downloads Released
0.7.0 (Current)
Stable
16.57 KB 632 Download
0.6.7
Stable
16.04 KB 119 Download
0.6.6
Stable
16.03 KB 66 Download
0.6.5
Stable
16.01 KB 80 Download
0.6.4
Stable
15.99 KB 66 Download
0.6.3
Stable
15.44 KB 139 Download
0.6.2
Stable
13.18 KB 210 Download
0.6.1
Stable
12.81 KB 104 Download
0.6.0
Stable
12.76 KB 180 Download

Share

Twitter The author of this plugin valerypopoff is on Patreon. If you like their addons, consider supporting them!

Download

0.7.0 Stable (16.57 KB)

Info

Statistics

  • Download count 1,596 total downloads
  • Latest download count 632 downloads of latest version
  • Average download count 3 downloads per day average

Owners

  • 9 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • I think I found a bug with the plugin. an alias with multiple variables overwrites if they are same. For example:

    var RectA = {

    left: 10,

    top: 10,

    right: 30,

    bottom: 30

    };

    var RectB = {

    left: 20,

    top: 20,

    right: 50,

    bottom: 50

    Setting alias RectA.left writes to both RectA and RectB. The only way to get around that is to use RectA.left1 RectB.left2

    • Ok, now I got this. This is not a bug. You're just using Aliases wrong.

      You initialized alias "RectA" with javascript "" (empty string). It means that alias "RectA" refers to nothing. The alias name is just a string. There's no way for the plugin to know that you meant javascript object named "RectA".

      So when you're later setting "RectA.left", you're actually setting "".left, which is just the global variable named "left". You also initialized alias "RectB" with an empty string. That's why RectB.left also means global variable named "left". Same variable. Actual javascript objects RectA, RectB and their properties stay unaltered.

    • Can't reproduce the bug. Can you send me the sample project file with the bug?

  • Fixed the .c2addon file. Previously it wouldn't install the plugin when dragging and dropping the file in to the Construct 2 window.

  • Can we see any tutorial to this plugin?