Hi guys new user here.
I decided to learn Flashpunk and AS3 today and just finished reading all the tutorials. So as my first “project” I decided to clone a game called Dodger.
Anyway, I wanted to make the enemies have variable size and so I opted to use Canvas instead of Image for the graphic of the Entity, also just to practice programming the other stuff not taught in the tutorials.
I thought I had it but I got stuck with the Canvas itself, I was trying to fill() it with a color but I can’t figure what the correct parameters should be. What exactly is a Rectangle variable type in AS3(I’m new to Actionscript as well) and also the color parameter. Is there an easy way to put the color using some kind of constants instead of manually putting uint in it?
Thank you very much guys