Babaloo
02-06-2007, 10:52 PM
hey guys!
my first post here, thanks actionscript.org...
I'm coding a scrolling game (a white water challenge) and i'd like to have an optional 2 player (turn-based: after player 1 finishes, player 2 steps in and after that total scores and then game over - or replay).
I'd love any suggestions on initiating players (a button, a variable and then???), tracking scores and game turns!
so this is my prototype for the scrolling background:
//start container bgscroll
_root.attachMovie("scroller","theScroll",10);
// initial scroll position
theScroll._x = Stage.width;
theScroll.onEnterFrame = function(){
var i= - 5;
theScroll._y = 0;
//moving from right 2 left
theScroll._x += i;
};
//attach margin layer
theScroll.attachMovie("margin_scroller","theScrollB",10);
theScroll.theScrollB._y = 88;
theScroll.theScrollB._x = 0;
//attach riverbed layer
theScroll.attachMovie("riverbed_scroller","theScrollA",theScroll.getNextHighestDepth());
theScroll.theScrollA._y = 330;
theScroll.theScrollA._x = 0;
_root.attachMovie("water","theBlue",theScroll.getNextHighestDepth());
theBlue._y = 100;
theBlue._x = 0;
is this newbie? i feel sooo newbie :eek:
thanks for reading!
my first post here, thanks actionscript.org...
I'm coding a scrolling game (a white water challenge) and i'd like to have an optional 2 player (turn-based: after player 1 finishes, player 2 steps in and after that total scores and then game over - or replay).
I'd love any suggestions on initiating players (a button, a variable and then???), tracking scores and game turns!
so this is my prototype for the scrolling background:
//start container bgscroll
_root.attachMovie("scroller","theScroll",10);
// initial scroll position
theScroll._x = Stage.width;
theScroll.onEnterFrame = function(){
var i= - 5;
theScroll._y = 0;
//moving from right 2 left
theScroll._x += i;
};
//attach margin layer
theScroll.attachMovie("margin_scroller","theScrollB",10);
theScroll.theScrollB._y = 88;
theScroll.theScrollB._x = 0;
//attach riverbed layer
theScroll.attachMovie("riverbed_scroller","theScrollA",theScroll.getNextHighestDepth());
theScroll.theScrollA._y = 330;
theScroll.theScrollA._x = 0;
_root.attachMovie("water","theBlue",theScroll.getNextHighestDepth());
theBlue._y = 100;
theBlue._x = 0;
is this newbie? i feel sooo newbie :eek:
thanks for reading!