HTML5 canvas game 4 questions
Hi everyone!
It's been a whilte since I made a game in Adobe (Flash sadface) now Animate.
I could have sworn back in the day the code to create a variable was
var varName = 1;
Question 1) I want to have var equal to a number would that be correct?
Question 2) If I had a button in a movieclip and I wanted that number to go up +1, would this be the code:
exportRoot.varName ++;Question 3) If I wanted to do a if/then code if the variable got up to 3 or more.. would it be:
if varName >= 3 {
doSomething;
}
Question 4) Is there a list of Adobe Animate ActionScript codes for HTML5 canvas games somewhere that I can look at?
Thanks ahead,
Line
