@sevdavis wrote:
So currently working through This project, and i just have a one more major thing.
I’m trying to make it so that the head, the ears and the eyebrows of the bear that i’m drawing twitch or vibrate using noise, this movement should happen when the boolean isAngry == true once the user has brought a “pepper” to the face of the bear. once the circle collision detection has ran.
if (isAngry == true) { // draw bear's head ofSetColor(255, 0, 0); ofDrawCircle(bearHead.x, bearHead.y, bearHeadSize); // draw bear eyes ofSetColor(0, 0, 0); ofDrawCircle(bearEye.x, bearEye.y, bearEyeSize); ofDrawCircle(bearEye2.x, bearEye2.y, bearEyeSize); } if (isAngry == true) { // draw bear's eyebrows on an angle ofPushMatrix(); ofTranslate(bearEyebrow.x, bearEyebrow.y); ofSetColor(101, 67, 33); ofRotateZ(45); ofDrawRectangle(bearEyebrow.x = 0, bearEyebrow.y = -35, bearEyebrowSizeW + 20, bearEyebrowSizeH + 10); ofPopMatrix(); } if (isAngry == true) { ofPushMatrix(); ofTranslate(bearEyebrow2.x, bearEyebrow2.y); ofSetColor(101, 67, 33); ofRotateZ(135); ofDrawRectangle(bearEyebrow2.x = -45, bearEyebrow2.y = -25, bearEyebrowSizeW + 20, bearEyebrowSizeH +10); }
Posts: 2
Participants: 2