Asmodean's Forum Posts

  • You have to do several things:

    1. To change the name, set the name in the project-properties about, in Constrcut 2. That should change the name in the Task-Manger or in the window if you use the windows-mode.

    2. The Taskbar icon.

    That is not so easy. I can only say how to do it in Windows 7.

    Make a png of your icon you want in 128x128 pixel. Put it in Program Files\Construct 2\exporters\html5\icons and rename the the old icon_128.png in something like icon_128.old. Rename your icon png to icon_128.png.

    Now you have to restart Construct 2. After exporting your game, you should now have the new icon. You have to change it back to the old icon or every game you export with NWjs has this icon.

    You can also change in the package-win.json or package.json in Program Files\Construct 2\exporters\html5\nwjs (don't know exactly which one) the logo name with your icon png and put your png in the directory with the icon pngs.

    3. use resource hacker to change the icon of the game self.

    You do all of this at your own risk. Please don't blame me if Construct 2 doesn't work correctly anymore.

  • 1-ui

    That is not a problem with C2. The problem is the lack of a UI-Plugin in C2. C2 is a Game-Engine and not for applications. it's a problem that many game-engines have, the lack of an UI-Framework.

    2-sheets

    Isn't that what functions for? Make a function and use the UIDs as parameter.

    3- (the worst !)

    That is what the plugins are for. If you want to reuse something make a plugin or behavior.

    4-

    Do yo mean instance variables? What is the meaning to change a variable of a sprite that is not in the layout?

    If you want to transfer a variable from one layout to another use a global variable that is what there are for.

  • Second, I tried to set "tree_bot" & "tree_top" Z-Order depending on their Y position, from top to bottom, so that higher trees are hidden by lower ones.

    I don't see a reason to split the tree in two objects. Can you not achieve what you want, with complete trees?

    In this example that are two complete trees, where the tree behind is partly hidden.

  • Try: SquareTX| Set Offset width to tile.Width, height to tile.Height/2

    But I think you are using the wrong kind of tile for a floor. The tile should more like that:

  • Thanks Jayjay

    I can confirm that with FireFox

    -Disabled: 0.4% - 0.5% engine, and 0.1% to 0.2% draw calls; CPU-Utilization 0%

    -Enabled: 1,6% - 1.7% engine , and 2,6% - 2.7% draw calls;CPU-Utilization 4%-5%

    with chrome the profile in the debug-inspector seems not to work correctly it doesn't update. The CPU-Utilization seems to be correct and this is still 0.1%-0.2%

  • With Chrome, Windows 7 64Bit, C2 R221:

    0.1% engine

    0.1% draw

    no difference between enabled or disabled.

  • If I activate in Chrome 'Block sites from setting any data' I get this Error in the Console:

    Uncaught (in promise) Error: No available storage method found.

    at b (http://localhost:8000/LocalStorage_plugin.js:17:9502)

    It seems that with this error, some or all LocalStorage events does'nt work. I tried OnError and 'On Item missing'.

    My workaround is: make a variable like 'isSaved' and set it to 0 and set it to 1 in the event 'On item set'.

    Now you can try on the start of your game to set the variable. If the variable is set to 1 it works, if not it's not possible to save the game at all.

  • As far as I know you can not use particles for collision. It's only a graphical effect.

    You can try to mix sprites in the particles. You have to look how many, so that the sprites will really hit what you want.

    I made a litte time ago something similar, maybe is useful for you:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    Click on any of the blue boxes and it will explode and if the 'particles' hit a other box it will explode too. Double click anywhere will restart the layout.

    I mixed 15 sprites in 100 particles in every explosion. You will see that sometimes it is not enough and a box will not explode, but to many sprites will affect the CPU Usage.

  • If you want to learn javascript from the scratch is the best to use a Framework, otherwise you lern only how to use this special game engine with javascript as scripting language.

    The only other one I tried and I know that uses javascript, is the MightyEditor it's based on Phaser.

    It's a online IDE: http://mightyfingers.com/ and there are beginner tutorials http://mightyfingers.com/tutorials/

  • For me the best Javascript Game Engine, aside from construct, is Phaser. Phaser is more a Framework then a game engine. There is a online code editor, so you can try it out http://phaser.io/learn , but also a tutorial how to get started http://phaser.io/download

  • You do not have permission to view this post

  • I tried cocos2d-js a little time ago. The main problem I had, was the lack of a complete documentation and examples in english. Maybe is it better know, but then you have to be fluent in mandarin to use cocos2d.

  • There was/is a problem with NW.js and Avast, don't know if this still a problem.

    https://github.com/nwjs/nw.js/issues/4023

    What you could try, if the problem is not Avast, delete the folder with the name of the game in:

    %USERPROFILE%\Appdata\Local

    If the files in this folder are corrupt, it could cause problems, but also all save-states from the game will be deleted.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made an example to look if 30 FPS will save CPU Usage on mobil. Now it locks at 15 not 30 FPS.

    Hold mouse button to spawn some sprite, then double click on the blue square for 15FPS, double click again for 60FPS. It only execute in 15FPS the subevents under every x second event.

    Have a look:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

  • I already told you, use FireFox, it works. Why don't you follow proposed solutions ?

    It doesn't work for me. I have tried FireFox, Chormium, Chrome and Internet Explorer on Win7 and FireFox and Chrome on Linux Mint.

    It doesn'n work. I have to use Colludium's trick with "keep me logged in" then it works.