plazatin's Forum Posts

  • You can try to check for an overlap and then pick the one at a higher layer so only one object is affected.

  • > It was, most PlayerFamily objects are not swimming, and I actually never tested the issue with one that was swimming.

    You may be hitting the old issue with OR-blocks:

    if IsSwim=false and other conditions are true, the event runs, but with zero family instances picked. PlayerFamily.UID in this case will return 0.

    This would explain why you were able to fix your code by adding "Pick All".

    This might not be the case here, since he mentioned that the UID is logged correctly without the previous text object creation action, but enabling it would make the UID 0. It seems the text object creation is the one interfering?

  • Try Ctrl + Shift + I if your FN button doesn't cut it.

  • That's odd. If you say that it works that way, maybe try to insert a browser log of the UID in between each of those actions and see which one is interfering?

  • upload your work file on dropbox/google drive/ a similar service, then paste the link here.

  • Can you send your work file so we can take a closer look?

  • Solved. Reported as a bug and has been fixed for the next beta.

    github.com/Scirra/Construct-3-bugs/issues/6163

  • I think you should be able to use bbcode for this, or htmelement (but it's always going to be on top).

    construct.net/en/blogs/construct-official-blog-1/new-text-features-construct-908

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Basically just an extra screen at the very beginning that requires user input to make the sound work.

    1) Launch game

    2) Splash screen (game logo for example, that says press any key to continue)

    3) User presses a key/touches the screen

    4) Go to main game screen/game intro/. This time since there was already user input, sound is already working

  • While working on a game which uses HTMLElement for the UI, I tested with Firefox and noticed that background images aren't showing up. I checked the path and the image seems to be detected by Firefox but it's still not being displayed. I've disabled ad blockers so it's not that.

    Below is how it should look (this is with Brave/Chrome):

  • Just tested with a blank project. Works fine.

  • I've used images, they work without issues. Can you send the file? Or try inspecting the element to see what's going on, looks like a file path issue with the broken link icon.

  • there are many ways to do this. One way is as I mentioned before. Collision box, which is what you move, and pin the character sprites on it. You should stay within the solids without any jumps/jerks, and turn around the other direction if you wish to.

    As for the dashing through, it's hard to tell without seeing your code. But building off the the previous example, you can use collision filters to enable passing through certain solids when the dash variable flag is enabled/animation is playing.

    Here's a basic example:

    drive.google.com/file/d/13yAh0cmCKkCczl_NLz5O7Wju_KbJVvcY/view

  • Hi longghead. The bounce and glitch around, I'm assuming is because of the collision polygon that changes every frame. A usual approach is to create a simple sprite collision box and pin the character to that object. What you control is the box, which will be invisible throughout the game. You can still test for collisions with your pinned character, but for movements, there won't be any bouncing around since it's square/rectangle that is consistent/not changing.

    Is that what you meant by the invisible sprite? It actually seems like it, but I don't understand what you mean by allow other player to move the other direction. It should be able to move in any direction except when the direction is blocked by a solid.

  • Your on created event is firing before the start layout event since it's already there. That's the reason why it's not changing and it works on the second random, because the number generated is after the adjustHSL. The default value is 0 so 0 is applied.