The web site for Flash ActionScript 3.0 game developers

 
         
   

re sizing in matching game

first of, I am completely new to flash ( first project), so be warned, any real technical language I won't understand. I managed to edit the files downloaded from here ( since I am clueless about adding frames and such on my own), but wanted my images bigger than the 50x50. the test ones I used are 70x80 (actually think I may want bigger). I have tried changing so many things in the files, but only bottom and side row show actual size. the others are being overlapped. I tried understanding the math, but nothing I try works :(
any help would be greatly appreciated!
first here is code where I assumed I needed to change. I tried also to change document properties from 550x400 to other sizes, and background layer image also, but no go :(

public class MatchingGameObject10 extends MovieClip {
// game constants
private static const boardWidth:uint = 6;
private static const boardHeight:uint = 6;
private static const cardHorizontalSpacing:Number = 72;
private static const cardVerticalSpacing:Number = 82;
private static const boardOffsetX:Number = 145;
private static const boardOffsetY:Number = 70;
private static const pointsForMatch:int = 100;
private static const pointsForMiss:int = -5;

after over 10 hours of trying, this is where I finally stopped, and this is what I ended up with, so you can actually see how it looks
http://www.hereissome.com/MatchingGame10.html

Thanks!
Vicky



Copyright Gary Rosenzweig