How do I use the X and Y values from an object from touches in P5js?

Thankyou so much for the reply! It’s great to have another set of eyes on this…

Whenever i use touch[1].x for example to drive the size of the shape, it comes up with an error in the console saying ‘TypeError: Cannot read property of ‘x’ of undefined’. Any idea of why this happens?

Thankyou again for your time!

FYI - i’ve mixed projects together to form this so I haven’t directly wrtitten it but trying stuff out!

2 Likes