Help needed
in
Programming Questions
•
1 year ago
Can anyone help me to change direction of this object ? What functions do I need to do to change direction of an object, the object should not move but when you change the values it changes direction left to right. Should I be using the "if" function ?
Any help would be appreciated.
void setup () {
size (250,250);
}
void draw (){
fill (144,144,144) ;
ellipse (75,75,55,35);
triangle (47.5,75,27.5,55,27.5,95);
fill (255);
ellipse(86,65,8,8);
fill (0);
ellipse (86,65,4,4) ;
}
Any help would be appreciated.
void setup () {
size (250,250);
}
void draw (){
fill (144,144,144) ;
ellipse (75,75,55,35);
triangle (47.5,75,27.5,55,27.5,95);
fill (255);
ellipse(86,65,8,8);
fill (0);
ellipse (86,65,4,4) ;
}
1