How do I draw/attach objects onto another?
What am I missing with my object notation?
using rectangle and triangle
Your questions can not be understood because you have not included a link to a repl. However, I looked at your latest repl, forked and edited it. Have a look: https://repl.it/@malvoliothegood/p5js-Video-Guide-21-Variables-mouseX-mouseY-1