Fogc's Recent Forum Activity

  • I'm exporting a frameless project using NWJS, I would like to make my own TitleBar (the draggable part of the window and window controls), but I'm having problems with the draggable part of the project, I don't understand how I can do it and I haven't found anything that really works on the internet and on the forum

    I was able to find two threads on the forum about this, but the links are outdated or the method is not very convenient

    https://www.construct.net/en/forum/construct-3/how-do-i-8/draggable-nwjs-window-153331

    https://www.construct.net/en/forum/construct-2/how-do-i-18/drag-window-node-webkit-solved-66916

    it would be very convenient if the window could be dragged by the sprite (or use something else), I tried to implement this using js, but I'm not good at it and made a bad method, since the position of the cursor relative to the window is taken into account, and not the screen, but I didn’t find how to find the position relative to the screen

    I would be grateful for any help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a problem that I don’t understand how I can read the scrollTop of the “Text input” object.

    For example, to read the scrollTop of an html element (take this html):

    <div id='coder' style='overflow-y:scroll;'>
    	CODE
    </div>
    

    we just need type like this js:

    const coder = document.querySelector("#coder");
    
    runtime.globalVars.CoderTop = coder.scrollTop;
    

    I tried to use this code for "Text input", but it doesn't work:

    const boxSTop = document.getElementById("TextBox");
    
    runtime.globalVars.BoxTop = boxSTop.scrollTop;
    
  • I want to set the sprite texture (image from url) but the image is not loading

    This function used to work, but with updates it stopped working.

    I use the r407.2 version, but the problems started much earlier, I still havent found a solution

    I tried changing links, images, settings and even tried to use other peoples с3projects, but still the image cannot be installed =(

    What can I do about it?

Fogc's avatar

Fogc

Member since 9 Oct, 2024

None one is following Fogc yet!

Trophy Case

  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

3/44
How to earn trophies