dop2000's Forum Posts

  • R0J0hound , mekonbekon

    Thank you, so simple!

    I went the wrong way - started by converting coordinates from layer with parallax 100 to layer without the parallax, calculating the offset, converting back and eventually got stuck.

    , oh, then you are lucky, you not affected by this bug

  • melomaniak

    It's possible, but every enemy (with its own shadow light and FOV sprite) should be on a separate layer.

    Making hundreds of layers for all enemies is a bad idea, of course. But if in you game there are only a few enemies visible on the screen at a time, I guess you can make 10 such layers. Once an enemy appears on the screen, move it to an unoccupied layer and pin one shadow light and one FOV to it. When the enemy is killed or walks away from the screen, move it to some other layer and destroy its shadow light and FOV.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    , Was C2 slow before?

    I'm guessing your laptop rebooted after installing the update? Could you try not rebooting it for a couple of days and see if C2 slows down?

  • I must be having a brain freeze.. Can't figure out how to zoom and scroll with lerp, so that one point of the layer (tip of the flag) always remain in the same fixed position on the screen (where the red cross is).

    Zooming is simple:

    Set layout scale to lerp(LayoutScale, newScale, dt)

    But how do I scroll?

    Ashley,

    I seriously doubt Microsoft engineers can help with a third-party application they have never heard of.

    And there is no secret knowledge about this issue that I possess and you don't. C2 slows down over time or if launched many times. The result you can see on the video. That's pretty much it.

    If they ask something you don't know, you can always relay their question to this post, I'll be happy to help.

    Have you tried to reproduce the issue with that script I posted? It doesn't require your constant attention. Run it on a couple of Win 10 machines with different hardware/windows version, and check back an hour later.

    For me the script does its job perfectly, the result (slowness) after an hour of running the script is equal to using C2 normally for several days.

  • You do not have permission to view this post

  • I managed to do this with ShadowCaster and blend mode, check out this post:

  • Sprite set position to X=round(Mouse.X/16)*16, Y=round(Mouse.Y/16)*16

    If you have a tilemap and you need that sprite to follow tiles, you can use Tilemap.SnapX, Tilemap.SnapY, Tilemap.PositionToTileX and Tilemap.PositionToTileY expressions.

  • Nexis717 , if you create a clone of the cannon, another clone of the ship will be created.

    Why not just type its name in the search field?

    Because I don't remember the names of all hundreds of objects in my projects.

    I tried finding a public bug portal for Windows itself and I can't find one

    You can submit a bug using the Feedback Hub app:

    https://www.microsoft.com/en-gb/store/p ... blggh4r32n

    I would also post it on the community board:

    https://answers.microsoft.com/en-us/win ... windows_10

    You might get help from a Microsoft representative or some other developer with experience in this subject.

    You can always cut us out the process anyway: if a Windows Update makes C2 go slower, you can try and go to Microsoft about that directly. If you find any way to do that though, I'd be interested to know how...

    I'm sorry, but this is a ridiculous suggestion. We (end users) have no knowledge of C2 internals and how it works with Windows API.

    If I tell Microsoft that my Construct 2 is slow on Windows 10, I can bet you anything that their answer would be to to contact the software developer.

    And by the way, I think we've established that it's not Windows Update that's causing this. If you don't have time to read previous pages - I tried uninstalling all updates including the Meltdown patch and it didn't help. Also several others reported having these problems on older versions of Windows 10 with disabled windows update.

  • Rounding rounds a number to the nearest integer, not to nearest 9 degrees

    Try this formula:

    bulletAngle = round(Pointer.Angle /9)*9

    Thank you for the honest answer. I have a couple of remarks, hope you will not consider them "trolling".

    - you said "Don't show unique icons" works around the issue completely, thereby providing a workaround;

    "Don't show unique icons" is not a workaround. I would rather live with 10 seconds lag than without unique icons. When you're working on a big project, you have lots of objects with long names, and the list looks like this:

    ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa... ObjectNa...

    It takes ages to find the right object, as you need to click every one to see its full name. And it makes it much harder to read event sheets. So no, this is not a workaround, it's disabling a very important feature.

    And anyway, this only helped me, others say that event dialogs are still slow even without the unique icons.

    then this seems to have a relatively minor impact

    Trust me, it's not minor. Try using a software for 10 hours a day where almost every action causes a lag, sometimes small, sometime big and you'll understand.

    And I'm sick or rebooting my laptop...

    But most importantly - if you strongly believe that this is a windows issue, can you please log a bug report with Microsoft?

    I think it's your duty as a developer, since your software product is hitting this bug and affecting us, end users (who paid you money for said software product).

  • Use CSV2Array plugin:

    When you select the first random frame, get image number from the array for this frame.

    Then pick the second random frame, get the second image number from the array. If both numbers are the same, repeat the last step. (Using While loop)

  • Once particles are fired, you can't control them. Only if you scroll the entire layout.