dop2000's Forum Posts

    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.

  • I suggest SVC - create an Excel spreadsheet with all animations and frames. Save as CSV, import to C2 project, load to array.

    It may look like this:

    Sprite1, Animation1, 1, 5, 7, 11, 32, 56, 18, 2, 42, 61

    Sprite1, Animation2, 7, 4, 0, 11, 32, 90, 20, 3, 61, 11

    ....

  • Not sure what you mean by "rounded angle".

    Here is a simple method - define two image points on each frame:

    Then do this:

    Cannon spawn Bullet at image point 2

    Bullet set angle to angle(Cannon.ImagePointX(1), Cannon.ImagePointY(1), Cannon.ImagePointX(2), Cannon.ImagePointX(2))

    Bullets will shoot in the direction from image point 1 to image point 2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, not possible. One container - one instance of each object.

    You need to remove the cannon object from the container and add SpaceshipUID instance variable.

    When your spaceship is created, create 2 instances of cannon and set Cannon.SpaceshipUID =Spaceship.UID for them.

    Now you can identify which cannon belongs to which ship and vice versa.

  • Sorry, it works in C2, but apparently not in C3.

    Have you tried remote preview in another browser (Firefox)?

  • Are you sure your variable is not Text type?

    This works fine for me: