how to copy in html element?

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Get ready to dive into a sea of endless excitement with "Dolphin Jump," the thrilling new game that puts you in control
  • hello, I'm using an html element,

    I made it so that I could select text

    I can copy it using cnntrl c

    but I can’t do it using the right mouse button, and the “copy” button does not appear on the phone when selected

    how to fix both problems?

    Additionally, by the way, I wanted to ask: do you know how I can get the coordinates of a tag (as in the text), I just need to create a sprite as a button in certain places in the text

  • For your first question, make sure to tick "Allow context menu" in the HTML object menu.

    For your second question, use Text.TagX(tag, index) Text.TagY(tag, index)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For your first question, make sure to tick "Allow context menu" in the HTML object menu.

    For your second question, use Text.TagX(tag, index) Text.TagY(tag, index)

    thanks for answering the first question

    but the second question was about how to do it in html

    Text.TagX(tag, index) doesn't work in html

    I need ways to make a button sprite in a specific place of the tag by coordinates

  • Can you give me an example of your text?

  • I played around a bit with this. You can get the tag position and size with this code:

    Just make sure that there are no problems related to viewport / scaling with your project settings.

    Project link: dropbox.com/scl/fi/rvxk5xstleim7wrtdzsf8/Tag-position-in-html.c3p

  • I played around a bit with this. You can get the tag position and size with this code:

    Just make sure that there are no problems related to viewport / scaling with your project settings.

    Project link: dropbox.com/scl/fi/rvxk5xstleim7wrtdzsf8/Tag-position-in-html.c3p

    thanks you

    if it's not too much trouble, can you please tell me how to make a button with a picture style? for example, a frame from a sprite

    I'm using this for now

    <button class="styled-button">Demo button</button>

    <style>

    .styled-button {

    background-color: #0f595e;

    color: white;

    font-size: 20px;

    padding: 5px 10px;

    border: 2px solid white;

    border-radius: 16px; /* Rounded corners */

    cursor: pointer;

    transition: 0.2s;

    text-transform: uppercase; /* Make the text capital */

    }

    .styled-button:hover {

    background-color: #13777d;

    }

    .styled-button:active {

    transform: scale(0.95);

    }

    </style>

    how to make his appearance from any picture?

  • You can add background-image: url('IMAGE URL HERE'); instead of background-color to have an image instead of a solid color as background.

  • You can add background-image: url('IMAGE URL HERE'); instead of background-color to have an image instead of a solid color as background.

    thanks

    how to get the url of the animation frame?

    can you show an example?

    it may not be an animation frame, but uploaded images

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)