dstaggers's Recent Forum Activity

  • Ah ok. I thought Canvas was something built in as the scirra site had info on it here. My mistake! Thanks!

  • I can't support another developer's plugins. You have to ask them.

    Sure, I don't expect you to support their plugin. I was asking for advice on how to solve the problem as the problem itself, I don't believe, is specific to the plugin.

    For example the "print" issue... this happens with construct in general... even if you stated a brand new project with no plug in's at all. Add a canvas and the ability to change it in some way. In your browser if you use your browsers built in "print" it will always show you atleast 1 step behind where you are. That is simply using canvas + your browsers print.

    As I said before, I didn't start this project but I think that "canvas" is a build in part of Construct 2 right?

  • Hey Ashley,

    Thanks for the reply.

    Maybe you can help me with my problem. I now see what you mean in your reply.

    I am trying to update a project I did not create. It is a sort of "business card maker" using C2 with a canvas. It uses "rex_canvasext" behavior and "rex_undoredo" plugin to add functionality to the canvas.

    Where I am having problems is in the Undo/Redo buttons. They work... but not immediately. When hitting Undo or Redo, I must use a brush to click on the canvas before it updates. In other words once I bring focus back onto the canvas itself, the "undo" shows up. Example: I first draw a vertical line, then I draw a horizontal line... I click "Undo" but nothing changes immediately. I simply click anywhere inside the canvas(thus drawing a single dot) and the horizontal line disappears as it should have when I hit "Undo". This, to me, shows that the "undo" process actually happened, but the canvas won't update until the next time it's affected directly. I am looking through the JS on the plugins, but I can't figure out where exactly I need to make a change so that when the image of the canvas is updated(an undo or redo) that the canvas will immediately change and not require a direct change(a brush stroke) before showing the undo/redo.

    Also, when I go to use my browser to "Print" it seems like it prints 1 step behind whatever the screen shows. So, if I load the page and do nothing and then print.. I see a white screen instead of the main screen. If I click on Object A to load options, and then press print, my preview shows the Main screen BEFORE i clicked object A. If I then click object B and show different options... then press print... my preview shows my screen with Object A and its options loaded... etc. It seems the DOM contains the info that was already past and not what your are currently seeing. Any ideas?

    Any advice you can give me?

  • 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 project that I am working on and I think the issue I am having is that construct isn't updating the canvas on every tick.

    Problem: When using this draw canvas the unto/redo buttons dont update the canvas usually on the first click, however when I re-click in the canvas.. the undo/redo triggers. Also the "print" button will open the preview for the print, however it is not what is on the current canvas.. its always a few brushtrokes previous. If I close the preview, reclick in the canvas and then print again.. it's the right preview.

    I can see articles saying to set the runtime.redraw = true but where do I do that?

  • Here's an example:[attachment=0:bdlq8l6q][/attachment:bdlq8l6q]

    Perfect. Thanks.

  • Try plain text.

    But how would I get that onto the canvas?

  • Bump..

    I really need a answer to this. Can anyone help?

  • I am editing a "business card maker" that another developer made in Construct 2. It uses Canvas. The program already lets you draw and paste in sprites, but now they want you to be able to type into a text box and have that as a part of the card too.

    When you save or print it scrapes the canvas itself so I need the text to actually be a part of the canvas. Is there any way to do this?

  • Hey lennaert,

    Thanks for the reply.

    As a matter of fact I have already used the snapshot functionality to do just that... the "save" button actually didn't have any functionality either but I did exactly what you descrbed... made a snapshot and pushed it as a download as a .png file.

    However, the company also wants a "print" feature too. I will try the "layer" thing you suggested and see if I can get that to work. I havn't worked any with layers yet so I don't know how that will work.

  • So I am new to Construct 2.

    I am a developer and our company picked up a client who had a website based "business card" paint type program made in Construct 2.

    You draw up your own card and then save/print it. Well, whoever they paid to make the program never finished the "Print" button. They want us to do that.

    I am trying to find a way so when a viewer clicks the "Print" button on the page, that it opens the browsers "Print" settings, however, I don't want them to print the whole screen, I only want it to print the Canvas area they just created their business card in.

    I have tried toying with a 2nd Layout view where it simply copies the contents of the Canvas on the main layout but I cant seem to get that to work. I have been able to load the Canvas contents in a new tab, but it seems you have to refresh the page to see it as it comes up bland at first. Still, using that method the user would still need to manually invoke the print method of their browser manually which is not what the client wants.

    What I need is to be able to press the "Print" button in the web page, have the printer screen pop up, but only print the Canvas area they have just been drawing in. Is this possible?

    Edit: Here is the live website as written in Construct2

    Website: planetmogul.com/AdAgency

    Again I did not write this and I know there is 1000 things wrong with hot it works now, however at this point I am only tasked with making the "Print" button function as it should.

dstaggers's avatar

dstaggers

Member since 19 Dec, 2013

None one is following dstaggers yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies