Jump to content

Phaser 3 Capture canvas at specific coordinates

Raghvendra Singh

Recommended Posts

Hi All,

Below is my project url please visit

Now my question is that i am creating a polygon at run time and add physics to polygon. When the polygon collides with matter body a horizontal redline is drawn and when i click on the down arrow button then another metal spring collides with polygon shapes then a blue line draw and you can drag the blue line.

So i have to take the snapshot of only that polygon and redline which is beneath the polygon  and that blue line which is being dragged and show them in the grid box 1,2,3,4. The polygons can be rotate as well by middle button when the spring metal is not collides with the polygon.

I have tried several ways to figure this out but not able to fix the snapshot . I am attaching the image that what i actually want.

And please tell me a way to make the polygon shapes more steady while rotation.





Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...