I just don’t get Codea’s logic into my head. How thing are wired up? How can I build a complex visual object and then group it and interact with it? I always have the schema inside my head, that things are assigned to variables and then you use them to interact with this object. Say I have a rect with a direction indicator (line). Now I want the whole thing to reflect rotation() and other operations visually. How?
function setup() --displayMode(FULLSCREEN) supportedOrientations(LANDSCAPE_RIGHT) end function draw() background(144, 154, 146, 255) -- visual direction? fill(79, 123, 37, 255) strokeWidth(0) rect(WIDTH/2-30, HEIGHT/2-30, 60,60) stroke(255, 60, 0, 255) strokeWidth(5) line(WIDTH/2, HEIGHT/2, WIDTH/2, HEIGHT/2+35) rotate(90) --how to get this working? end