Game Favorites's Comments

  • Following on from my earlier comment. If you do not want to use another layer to hide the quarter of a sprite in the top left corner, you can make them invisible instead.

    On start of layout> DOT1 set invisible

    DOT2 set invisible

    Line set invisible

    Line > X = 0 Line > set width to

    distance(Dot1.X,Dot1.Y,Dot2.X,Dot2.Y)+20

    Line > X = 0 DOT1 set invisible

    DOT2 set invisible

    Line set invisible

  • For mobile games, if you replace mouse with touch, I found that it creates lines coming from the top left of the screen. I solved this problem by adding the following:

    Line > Compare X = 0

    Line > set width to distance(Dot1.X,Dot1.Y,Dot2.X,Dot2.Y)+20

    Please note that you could do the same for Comparing Y if you wanted to but it isn't necessary. I also used +20 instead of +1 because my sprite was 20 pixels wide. Please also note that there is still a quarter of a sprite in the top left corner but it can be hidden by adding a new layer and placing a sprite to cover it. There might be a better solution but hope this helps you out a little

  • works very well on construct 3.Thank you so much for making this tutorial. One thing I would say is that I would recommend that you make the line into a dot for a much smoother drawn line and its better for single dots too

Game Favorites's avatar

Game Favorites

Member since 21 Apr, 2020

None one is following Game Favorites yet!

Trophy Case

  • 4-Year Club
  • Entrepreneur Sold something in the asset store
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies