PDA

View Full Version : hello people i need some help



shazwoogle
February 21st, 2005, 02:49 AM
hello people first POST yay any way i need some help i have been making 2 games which will be put to gether at the end bu that dosnt matter i just have 3 questions
1. first of all and probebly the most important
how do you make it so that the mouse cant
leave the stage?
2. how do you ad depth to things.....
3. finaly how do you make the background move with the mose but stop at a sertain point like in this HERE (http://www.newgrounds.com/portal/view/216187) and yeh... so please help me

ChaosKindred
February 21st, 2005, 02:59 AM
hey, i'll try to help you as best i can:
1) i dont recall any techniques to stop mouse movement, but if you have a custom cursor and hide the mouse, the cursor wont leave yhe stage
2) I dont really understand the ? can u be a bit more detailed
3) in the background MC add:
onClipEvent(enterFrame){
if(this._y<= *bottom Boundary value* && this._y>=*top boundary value* && *this._x <= *Right boundary Value* && this._x >= *Left Boundary value){
_y = _root._ymouse
_x = _root._xmouse
}
}

signifer123
February 21st, 2005, 06:36 AM
1) make it fullscreen :P
2) this would be use of layers or the use of getDepth

shazwoogle
February 22nd, 2005, 01:52 AM
bump

shazwoogle
February 22nd, 2005, 02:10 AM
hey, i'll try to help you as best i can:
3) in the background MC add:
onClipEvent(enterFrame){
if(this._y<= *bottom Boundary value* && this._y>=*top boundary value* && *this._x <= *Right boundary Value* && this._x >= *Left Boundary value){
_y = _root._ymouse
_x = _root._xmouse
}
}
when you say *bottom Boundary value* what do you mean by that and also top left and right....

shazwoogle
February 24th, 2005, 02:08 AM
bump!

Copes
February 24th, 2005, 08:08 AM
top = 0
left = 0
right = 550
bottom = 400

*standard size* if thats what your using?