vila4480's Forum Posts

  • Thanks Gillis!

  • Could it be anything in the index.html that pulls the focus somehow ?

    Ho, and by the way, last time I used C2 inside a webpage, I prefered to use directly the canvas and start the runtime with onload :

    <div id="c2canvasdiv" width="990" height="207">
       <canvas id="c2canvas" width="990" height="207">
          <div id="c2canvas_off"></div>
       </canvas>
    </div>
    <script type="text/javascript"> 
       jQuery(document).ready(function () {
          cr_createRuntime("c2canvas");
       });
    </script>

    If it is the index that pulls the focus somehow, this would solve the problem.

    Thanks Guizmus!

    I'll look into it!

    That just might speed up loading and make the wepage lighter.

  • AHA! Found the troublemaker! <img src="smileys/smiley17.gif" border="0" align="middle" />

    Since you didn't expect construct 2 to have that behavior, i understood it had to be something in the code.

    Then i remembered i had a "set text box to focused" on start of layout - which was scrolling down the browser window.

    Removing that part fixed the issue!

    Even though you didn't provide the answer, through your post i managed to find the problem!

    Thank you Ashley!

  • Hi Ashley,

    I've tried loading a basic HTML page and an SWF file and both work as intended (they load up even outside the visible window).

    But whenever i try to load the Construct 2 index file or another HTML page with it inside, it jumps the current page down to where it loads.

    I'm using something like this:

    <iframe style="padding: 0; margin: 0; border: 0;" src="http://www.url.com/index.html" height="1143" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

    I've also tried doing that with div tags before the iframe ones but the final behaviour is the same.

  • Hi everyone,

    I've recently found an issue that's driving me nuts.

    The problem is i want to embed a construct 2 game on a website but i only want to show it when i scroll past some inicial pictures.

    Unfortunately when construct 2 loads, it scrolls down the webpage to its position, even though i'm using iframes.

    How can i fix this?

    I want to prevent Construct from scrolling down the page where the game is embedded!

    Thank you all, <img src="smileys/smiley2.gif" border="0" align="middle" />

    -ViLa

  • Okay so...

    Textbox -> Set text to replace(textbox.text, ",", ".")

    WORKS!

    Thank you so much Joannak!

    You probably saved my job <img src="smileys/smiley36.gif" border="0" align="middle" />

    PS: i never understood thats what this function is for from the manual reference.

    SOLVED!

  • I must agree with you.

    Thank you so much for your help and quick reply. I'll look into it and i'll post back my results. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi everyone,

    I know this sounds like a newbie question but i dont think it is... i've been trying to replace commas with dots on textbox entered numerical values but i've been fruitless.

    The problem is that the user might type 155,32 instead of 155.32 which is different for a calculation.

    How can i fix this?

    I know this is pretty much an algorithm issue but i've tried everything and i'm starting to lose hope...

    Please help!

    Thank you for your time!

  • Hi,

    I've tried following every guide i can get my hands on but i still can't figure out whats wrong here. I'm using the same set of instructions for touch controls as well as keyboard controls, yet i get very different outputs.

    <img src="https://dl.dropboxusercontent.com/u/6318546/Starchild/Forum%20Construct/construct_Movement.png" border="0" />

    Touch is working great with all animations working as intended.

    Keyboard makes the character stuck on frame 0 for default animation set.

    I noticed i was using 8-directional keyboard input. Deactivating it does not solve the problem though...

    What am i doing wrong? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • I found this post and it helped me discover a new solution to the same issue.

    I think that there's a new functionality on Construct that may aid.

    You can now use the following logic:

    When Mouse Cursor is over "Object 1" -> Mouse Set Cursor to "Hand"

    If you don't want your mouse stuck as a hand then you must add an inverse condition:

    When Mouse Cursor is Over "Background" AND Mouse cursor is NOT over "Object 1" -> Mouse Set Cursor to "Normal"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys, its 'troublesome' ViLa again! <img src="smileys/smiley17.gif" border="0" align="middle" />

    I've come across a small issue that is kind of bugging me right now.

    I need to add a text field with a large monetary value in there... something like "5.332.82,50?" - which is calculated in-game.

    The problem is that Construct doesn't add the dot marks (so i have a number like "533282,50?")

    Soooo uhmm.. any ideas on how to add the thousand marks?

    Thank you for your time!

    -ViLa

  • Oh! This seems to be Dropbox.com related as it works on an FTP server!

  • Hi guys,

    I'm sorry to bother... i've ran into a pretty ugly issue here and my time is really tight!

    I've been using webfonts on my texts.

    Unfortunatelly, they seem to load well on my localhost but not when i load them up on the server...

    What i mean is that i can see everything fine and the webfont is properly loaded when i open up the file locally.

    But when i use the project file URL on the server, it loads up a default serif font on all "supposedly" webfont texts.

    Whats going on?

    Could this be CSS related?

    I plan on embedding this on an iframe later... can it be of assistance?

    Also: i dont have this font installed on my computer.. which means that, when locally, the webfont is properly loading it from the webz.

    Please help!

    Thank you in advance,

    ViLa

  • My project is kinda stuck here as well. Hoping the new build comes soon! <img src="smileys/smiley26.gif" border="0" align="middle" />

  • im sorry im having edit issues with this forum on my tablet. i tried to correct: tcp or usb connection