How to make a drawing canvas

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • 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