This week,I add some variables on my 1st week little tiger.
I realise that we need to choose a suitable variable when we want to meet some specific effect.
For example,
I use these code to move my tiger’s arm,
var handy=450
….
//arms left
stroke(250,100,20)
strokeWeight(10);
line(160,handy,230,500);
handy=handy+1;
But I found that I cannot limit the range of the movement of tiger’s arm.
My question is how can I limit the range of the movement?like I want the arm to go down and to back on the half way.
I knew I can use “random()” to achieve this easily, and that’s why I think it’s better to choose a suitable variable in the beginning.I think I need more time and exercise on familiarising with different variables.
I also have a problem in “1 element that is different every time you run the sketch.”
I do not remember we have learnt this and I also checked The Train Code videos.I asked my programmer friend,then he told me to use “if” and give me a link like that,https://codepen.io/leadream/pen/ZEWMreg .It’s too complex for me to understand.
Feelings this week:
DO NOT finish homework on the last day,then I can HAVE MORE TIME TO ASK FOR HELP.
2nd post this week:
I watched the videos for next class and I reedit my little tiger.I think I knew how to change one element everytime I run the sketch now.
AND ALSO,
I decide to adjust my way in finishing my homework.
Next week ,I will finish the assignment as soon as possible and then I watch other videos and material.
After that ,reedit my sketch and write a second post for that week.