Schoening's Forum Posts

  • Thanks Ashley. I look into it from the Three.js side then

  • It appears that my function is called twice. This is a problem obviously.

    And my console log displays THREE.WebGL Renderer 67 twice!

    Do you have any idea why that could be?

    There only is one object in the game.

  • I am writing a plugin + behavior.

    In the simplest way explained the plugin will be a Array.

    And I want to add objects with the Behavior to be pushed into the Array.

    Any tutorials on this? Or plugins I should read through?

  • Aye? Node-webkit plugin or something?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey, ! I'm kind of a noob when it comes to Construct 2, though I've been trying to discover some form of a "save" functionality that you just described for saving JSON. As it stands there is this tutorial(manual entry) called 'Using project files in Construct 2' on scirra.com. If you search for the 'Making level editors' section in the manual entry, it will describe some plugins you could use to save data, which are the Array and Dictionary Plugins. Both the Array and Dictionary Plugins have DownloadJson and LoadJson Actions which can be used to store the data in a file and load the data from a JSON string. You'll also need the AJAX plugin to request the JSON file. Below I'm providing an attached .capx demo project of saving/loading the JSON. I'm using Project files though so I had to import the test_json.json file that contains the saved JSON format of the Array Plugin Object that I used in the demo project to store a JSON string of the example_json.json file. It automatically asks you to save a file test_json.json upon running the project. And you can click the 'LOAD JSON' button to load the JSON format of the Array Plugin which was orginally saved and then imported into the project unfortunately. If you used the Request GET or Request POST Actions to call scripts to return/save the JSON instead of the RequestFile Action on the Ajax Plugin, you could bypass the need to import files and use the Array Plugin. And if you're interested search for this work in progress Plugin for parsing/forming JSON strings: '[plugin] JSON (import/export/generate/edit/inspect/...)' .

    Thank you so much man!

    That's all I need I'm good to go. YAY!

  • I am currently writing a 3D game in JS with a Text Editor.

    But I would like to use Construct 2 to quickly prototype a level editor for my project.

    It would greatly simplify things if I could just download a JSON via a "save" button.

    Is this possible?

    Or is there a third party plugin that can do this?

  • Schoening this looks very cool! Do you have a capx that you can share?

    Hey man. I used THREEJS.

    So there is no CAPX.

    Only the code in there :)

  • Great!

    Thanks Ashley :)

  • It is possible for me to write a Plugin that puts a Canvas on top of C2's canvas at runtime?

    I am thinking for the ThreeJS Library for example.

    I saw that MS has a webgl 3d js, and Asm will probably be just Firefox.

    Then Chrome is leaving Webkit for its own version.

    Its almost like they make plans to slow things down.

    Just wanna add here. I don't think AsmJS is gonna be all that great. I was all exited when I first heard about it. But its not like we are just gonna compile some JavaScript and that's it.

    I personally am not going to write everything in Bytecode.

    (I wouldn't even know how!)

    Some snippet I found:

    case 65:

          cd = (h | 0) == 0;

          if (cd)

    k = 67;

          else

    k = 66;

          break;

    And 3D. Well. I think a 3D Sprite would be a very nice addition. But obviously there is tons of work in doing so.

  • > jlouter: the error means the capx needs a specific (custom) plugin to be opened.

    >

    > Apparently those examples were made before Ashley implements dialogs that gives the name of the missing plugin(s).

    >

    > On the first page of this thread you can see this post that links to the required plugin.

    I downloaded the plugin that was listed in that post, and still had an issue with trying to open the capx like jlouter mentioned.

    I also have an alternative shuffle in case anyone would like it:

    <img src="http://i91.photobucket.com/albums/k286/seridras/DealDraw.png" border="0">

    This should address the issue mentioned above for incomplete shuffling.

    This is a Year old. But anyone mind explaining this shuffle to me?

    I see it works, but how come it does not repeat the numbers at some point?

  • I found the easiest solution ever.

    DONE!

    ROTATE TOWARDS ANGLE !

    BUILD IN AND EVERYTHING!

    DERP!

  • I need to rotate a card 90 Degrees over the period of X second.

    I currently try and do this with Sine and it does not look to good.

    Using the Rotate plugin was looking awful. It "slowed down" when I set it to 0 once it reached 90 degrees. But kept moving ahead for a while.

    Last try is gonna be doing a "for each" check and rotating the objects via ticks until they reach 90 degrees. But I don't like doing that in C2 :-( Sorta defeats the purpose of even using the interface imo.

    Any ideas?

  • Thanks Kyatric! :)

    I try the Steam Version!

    With any luck.. I could get some people interested in C2 :D

  • Sounds odd..

    But I would like to create something in the Free Version. But everytime I install it, it realized that I already have the licence.

    (No matter where I install Construct 2)

    Basically I would like to create a demo game, and give out the capx. So makes more sense to create something that non users and free users can check out too!