dop2000's Forum Posts

  • Yeah, lots of addons stopped working in r234

    Scirra developers really should have warned us about this breaking change.

  • Desktop version still crashes for me on bigger projects...

    Edit: and even on small projects. Tried re-installing nwjs, clearing cache etc. and no luck this time.

    Can anyone help please?

  • I had similar issues today - desktop version wasn't working properly, when previewing projects they were either stuck in black screen or crashing.

    After updating to the latest NWJS SDK v0.51.0 it now seems to be working fine.

  • I have the same issue - the game window remains black, tried both Firefox and Chrome. There is an error in console, not sure if it's related:

    Arcade link:

    construct.net/en/free-online-games/random-level-generator-23488/play

  • Interesting find!

    I also noticed that using a List Object this way allows other things that normally would wait until after a For/Loop to finish (like animations, or rotating objects) will continue normally DURING the For/Loop.

    No, I don't think so. The loop ends pretty quickly in less than a second, and then the sprite animations and behaviors start playing. The updates for all form control objects (listbox, progress bar etc.) seem to be queued and happen after the loop has ended. All these objects skip the intermediate values and only show the final result, oddly except for the listbox, which tries to show all values. And it takes a long time for it to iterate through all values.

  • Make sure that the Boss image (and all other imaged) in the animation editor is facing this way --->

    .

    .

  • Physics is not compatible with other behaviors that may alter object position. It's recommended to move Physics objects with Physics actions only, like "Set velocity" or "Apply force".

    If you need to teleport an object to another position preserving its velocity, you should save velocity values in a pair of variables, then move the object, then restore velocity from saved values. You may also need to temporarily disable/enable physics to avoid glitches. And make sure it doesn't overlap other physics objects in the new position.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • These are different things. FileChooser is for browser games, in NWJS project use NWJS actions - "Show open dialog", "Show folder dialog".

    Then in "On dialog OK" trigger you can get path from NWjs.ChosenPath expression

  • Just remove the alert. Browser.ExecJS("parent.var")

    Also, in C3 it's easier to use a script instead of Browser object.

    runtime.globalVars.userID=parent.var

  • Why can't you do it on PC?

    Also, you posted in the wrong forum. This forum is for Construct 2.

  • Creeps Compilation You probably need to create a function in the parent page that would return these variables. And then call that function from the C3 code.

    Another option is to use query parameters, check out this post:

    construct.net/en/forum/construct-3/how-do-i-8/variable-webpage-153171

  • Sorry, I can't help. There is nothing in the code that can cause these lags.

  • I definitely don't have this issue on my laptop. Can you try running on a different device (phone, tablet)?

  • Why do you need two events "hitBoxEnemy on collision with mainCharacter"? Because the second one is a sub-event, it may trigger at a different time and cause some unexpected issues.

    Try combining both events into a singe one. I'm not sure if this will fix the problem with the animation, but at least you'll have an optimized easy-to-read code.

  • Never use "Trigger once" with objects that have multiple instances, like enemies in your case. It will always work incorrectly and cause bugs.

    I suggest that you check for Health<=0 in a sub-event under the event where you deal damage to the enemy. Instead of "Is overlapping + Trigger once" do this:

    Bullet On Collision with Enemy
    .......Bullet destroy
    .......Enemy subtract 2 from health
    
    .......Enemy Compare variable health<=0 
    ................... (all the actions to kill the enemy here)