Functions
Building Function
Building Function
This week seemed a lot easier after extra studying last week. I figured that making the building a function would be an easy add. I also made the clouds a function but got stuck on the placement. I wanted the placement to happen on mouse click but I couldn’t figure out how to place the cloud and keep it there. I basically got the mouse click to get the position and place a cloud there but it would erase the old one on the next button click. I tried make a “for loop” that would place 10 clouds but it still didn’t work. Maybe in my loop I need to reset the position of the mouse. I’ll have to go back later and try again with the clouds but the buildings as a function work pretty well.