Question: Q1) Whilst the mouse is moving: - Make HiddenStoreVal_a equal to the value of mouseY - Use the 'max' function to prevent HiddenStoreVal_a from falling
Q1) Whilst the mouse is moving: - Make HiddenStoreVal_a equal to the value of mouseY - Use the 'max' function to prevent HiddenStoreVal_a from falling below 3
ii) Whilst the mouse is moving: - Increment HiddenStoreVal_b by 2 - Use the 'constrain' function to prevent HiddenStoreVal_b from falling below 2 and going above 10
iii) When any key is released: - Increment HiddenStoreVal_d by 3 - Use the 'constrain' function to prevent HiddenStoreVal_d from falling below 2 and going above 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
