ruast's Forum Posts

  • Mine is a web game.

    I notice that when there is any error in loading from remote cdn the path gets printed to console. And although the path is token protected the player has the token in order to downloaded the file remotely through construct so i guess it would be extremely easy to download it directly from the cdn and read the whole file

    Loading remotely is easier for for future edits because base game remains the same however if for web including the file in the project makes it harder to see then the effort would be worth it. But i take it either way it's going to be easy to see the file ?

  • If i don't want the json that contains the main level data to be seen by others, is it better to include it in the project itself or is better to load from cdn at runtime? Or will it be viewable in both cases

    Tagged:

  • That's true, atleast focus is working great now, thanks for that.

  • Thank you so much cesisco. Focus is working great but hover isn't. On Hover the colour still remains the default blue.

    So this is working great

    #wordcombooptionslist:focus {
     background-color: /* background color */;
    }
    

    and this isn't

    #wordcombooptionslist option:hover {
     background-color: /* hover background color */;
    }
    
  • Tried the following but it isn't working

    #wordcombooptionslist{
     
    
    border: none;
    font-size: 20px;
    background-color: transparent;
    word-wrap: break-word;
     
     
    }
    
    
    
    
    #wordcombooptionslist .dropdown-content option:hover{
     background-color: pink;
    }
    
    
    

    Any ideas?

  • I have the following css

    #wordcombooptionslist{
    border: none;
    font-size: 40px;
    background-color: transparent;
    word-wrap: break-word;
    }
    

    The dropdown is transparent when unfocussed but when it is in focus , the background-color becomes opaque white and the hovered over option has a background colour blue.

    Is it possible to change these colours ?

    Tagged:

  • it's working by using the script localStorage.getItem(key)

  • Hello

    On my homepage i have added a login system which stores session id , user id etc in local storage. My homepage has a list of games which are made with construct and open in a new tab on my website. i want to access session id, user id etc stored in local storage but i am unable to do so

  • Thank you so much it works now like you suggested

  • I am trying to cycle through 3 images within the same SVG object using an Instance Variable. Like 1-2-3- 1-2-3- 1-2-3. However after 3 i am getting an error in the console and instead of 1, the svg is skipping to 2. What am i doing wrong? Project file can be downloaded at https://www.dropbox.com/s/m5bkio5j6d401lu/svgcycle.c3p?dl=0

  • if the home button is pressed or new tab is opened or phone screen is turned off and on,

    then when the tab in which the game is playing is revisited,

    the game reloads , the Construct splash screen appears, the variables are all reset..

    What can i do to fix this?

    This is happening on Windows as well as iOS. Have not tested android

  • I guess this has to do with the origin point which needs to be the same. Needs to be set from the sprite editor

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I have a sprite and set it's X,Y coordinates , it's width and it's height to exactly that of a button, it still does not appear in the same space as the button. What am i doing wrong

  • All good now , turns out some files were not getting uploaded, tried via FTP that worked

  • Hi

    I am able to play my game from

    cdn.mysite.com/Game1

    but not from cdn.mysite.com/Game1/index.html

    The reason that i want to play from index.html is that when i turn on authenticated urls on my cdn the url for cdn.mysite.com/Game1 seems to not work, i can see the construct3 icon in the broswer tabs but the screen stays blank white. I feel it may be something to do with my cdn handling files better than folders for protected urls.

    Is a game supposed to play from

    cdn.mysite.com/Game1/index.html

    or only from cdn.mysite.com/Game1 ?

    If it's supposed to play from cdn.mysite.com/Game1/index.html what could be the reason it isn't for me?

    If i turn off url authentication cdn.mysite.com/Game1 this works but cdn.mysite.com/Game1/index.html does not

    If i turn on url authentication neither works