Heptagono's Forum Posts

  • Hey, I just seen it. I did not noticed the example before.

  • How do I scroll and roll over the game's background like prezi does with its presentations?

    I've tried to do so, but the only result I get is a too raw change of position, there is no smooth movement nor zoom or beauty.

    Is possible to do so in construct?

  • Well actually I did it, but with a kind of bypass:

    I wrote a js file with my scripts. Then I created a project and created a call to a function where all my scripts are developed.

    Then, I edited the resulting index.html in order to include there the js file where my function is.

    And that's all!

    It works for my aim, which was just to employ the jsPDF.js library to create a PDF form presenting data from my construct app.

    Cheers!

  • You can run any javascript code in the Javascript SDK, so if it is possible in a web page, then you can write a plugin for Construct 2 that can do the same.

    Do you think I can do this with javascript sdk?

    http://stackoverflow.com/questions/1729 ... javascript

  • Hello, I'm trying to use jquery to print only the "c2canvas" <div> or to save it as a PDF. I know, via Stackoverflow that is posible to do so with jquery. But...How to call these functions from Construct? Is that flexible this framework to allow this?

  • well, actually it doesn't work fine. The window.print(); function prints all the window broser including margins left and right of the content we want to print. This leads to a really bad result.

    No way...

  • Hello,

    I've found something difficult to archieve in construct 2:

    I'm trying to create a button that call a jquery function. So my plan is to write the jquery code in a file and add the url in the index.html obtained by the export.

    But, it is possible to get the id of that button or to change it's code so that, when it is clicked, it actives the jquery function?

    As far as I know this is called DOM, that mixture of javascript and html, but I can't find the way to mix it with a construct project.

    Any idea or experience related to this?

  • Then, all you have to add is display/hide the text/BG depending if the textBox is focused or not.

    Nice idea and clear description. I'll test it. Thanks!

  • Insert Browser object.

    add action

    browser

    execute java and paste "window.print();"

    Hey! Dutoit!

    Yes, I'll try it too...

  • Try asking in the Javascript SDK part of the forums maybe? I wish I could help, it's definitely an interesting idea! Let us know if it works out!

    I'll do it!

  • How do I keep the TextBox tooltip visible even if...

    ...the user clicks on the TextBox.

    In some Layout I need that tooltip to remain visible even in this case.

    But it does not seem to be, at least at first sigth, an easy way to archieve this.

    Any idea or experience?

  • Really?

    No one has ever wanted to do this?

    At least, not to print, but to save a file with some data...

    Any idea?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I have a calculator. It works with several variables which now I want to print. Yes, to print to an old classic sheet of paper. I know that you can use javascript to print some elements of a web page, for instance, with a function like this one: window.print()

    How could I use this on construct?

  • Well, It seems to be a very easy question, so I roll my sleeves up and start coding, but...

    what a surprise when I see that it doesn't works at all.

    Here is the interface:

    [attachment=2:34zs8mzk][/attachment:34zs8mzk]

    Here is the code:

    [attachment=1:34zs8mzk][/attachment:34zs8mzk]

    Explanation of the code: If I pick a button id=1 and I click on it, the other one id=2 must toggle state.

    The project is:

    [attachment=0:34zs8mzk][/attachment:34zs8mzk]

    Why does this happens?

    Do you think there is any logic problem here?

  • > Because when I turn it into an int() from a Str(), the 01 turns into a 1

    >

    Of course it does, in numbers you don't get 01. That is cosmetic 1 is 1

    01 = 0 because 0x1=0

    You can show user 01, but when you calculate you use 1.

    Example below is to show 01 to use 1 as calculation just add int(variable)

    That's right DUTOIT, It's an useful answer to understand better this issue. Thanks a lot!