You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'mayoarm11'

We found 1,013 matches.


<< < > >>

Viewing 631-660 of 1,013 matches. 11019 | 20 | 21 | 22 | 23 | 24 | 252934

631.

None

Topic: HitTest over a area?

Posted: 08/02/08 12:51 PM

Forum: Flash

At 8/2/08 12:30 PM, jozojozojozo wrote: Yeah i've tried this, but I don't want to use this method.

Thats why I was wondering how to do it over a certain area, I know it is possible. ;s

no it's not. Give us a visual aid

Draw your shape, and then highlight the part you want to hitTest. Perhaps hittest is not nessecary and simple math is sufficient.


632.

None

Topic: HitTest over a area?

Posted: 08/02/08 12:07 PM

Forum: Flash

At 8/2/08 12:06 PM, bloodmage2 wrote: well you could make another movieclip that is identical to the part that you want to hittest, then make it spawn whenever you spawn the other movie clip and hittest it.

yep. Or if the are you want to hitTest is a simply geometrical shape, then you can use simple math.


633.

None

Topic: flash AS3 keyboarder

Posted: 08/01/08 10:10 PM

Forum: Flash

i never heard of such a thing. cant you ask your teacher for a copy


634.

None

Topic: flash AS3 keyboarder

Posted: 08/01/08 04:56 PM

Forum: Flash

>.> wtf does the file do... lol


635.

None

Topic: game boss?

Posted: 08/01/08 04:52 PM

Forum: Flash

At 8/1/08 03:43 PM, antonyscorner wrote:
At 8/1/08 03:36 PM, Wolfears2 wrote:
At 8/1/08 03:29 PM, antonyscorner wrote: (Also, I'd like a code where the boss can shoot a gun)
Well, I just assumed...
oh, ur right- it looks like im asking for a code. sorry. So does anybody know a tutorial for hard bossees w/ a gun? Ty

look at duplicatemovieclip function, and you'll need a counter and health variables. Try it first, then if you fail, we'll help.


636.

None

Topic: Comic Consternation '08

Posted: 08/01/08 02:23 PM

Forum: Flash

firstly, let's call it what it is - a collab :)


637.

None

Topic: Simulate download

Posted: 08/01/08 02:21 PM

Forum: Flash

what does it do? ~_^


638.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 02:16 PM

Forum: Flash

At 8/1/08 02:13 PM, ChazzGoth wrote: Nah man not working.

is there any way to edit this code to say unless the right arrow or space bar are down it goes to frame 1?

if(Key.getCode() == 40){
this.wDown.gotoAndStop(1);
}
}

if(Key.getCode() == 40 && !(Key.isDown(Key.RIGHT)||Key.isDown(Key.
SPACE))){


639.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 01:26 PM

Forum: Flash

At 8/1/08 01:22 PM, CaiWengi wrote:
At 8/1/08 01:13 PM, mayoarm11 wrote:
he hasn't provided the code, so we don't know what it does exactly, so stop being a dumbass prick, and trying to prove me wrong all the time. I helped the guy, and that's it, stop wanting to have the last fucking word.
Excuse me? Werent you the first one to criticise my helping and trying to be condescending? And also that post looks to me like you want the last word. Hypocritical somewhat? Dont bother posting if your not even going to try and help

And chazzgoth Im confused as to what you want exactly. I think you want this

onClipEvent(enterFrame) {
if (Key.isDown(Key.RIGHT)) {
gotoAndStop(whatever)
} else if (Key.isDown(Key.RIGHT) && Key.isDown(Key.SPACE)) {
gotoAndStop(10)
} else {
gotoAndStop(1)
}
}

Hope this helps.

cuz your code was wrong, and wasn't what he was looking for. I don't mind you posting a suggestion. That else if suggestion you posted was very appropriate, and will likely solve his problem, but the sarcasm was unnesecary.


640.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 01:18 PM

Forum: Flash

At 8/1/08 01:16 PM, ChazzGoth wrote: Right have tried that and a couple other code variations still having a little trouble..

I'm gonna have to add something along the lines of

} else {
gotoAndStop(1)
}
}

at the end, but trying to stop it so that it only works if either the right arrow and the right arrow and space bar are down is the tricky part.

post your damn code -_- it's what I've been talking about for like 3 posts now :P


641.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 01:13 PM

Forum: Flash

At 8/1/08 01:02 PM, CaiWengi wrote:
At 8/1/08 01:00 PM, mayoarm11 wrote: he doesn't want it to be either frame 10 or frame1.
so...
Oh clever you. Wait, no.

onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT) && Key.isDown (Key.SPACE)) {
gotoAndStop(10);
} else if (Key.isDown(ANYTIHNGELSE) {
} else if (IN AIR OR SOMETHING) {
} else {
gotoAndStop(1)
}
}

he hasn't provided the code, so we don't know what it does exactly, so stop being a dumbass prick, and trying to prove me wrong all the time. I helped the guy, and that's it, stop wanting to have the last fucking word.


642.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 01:00 PM

Forum: Flash

At 8/1/08 12:58 PM, CaiWengi wrote: Cough cough....?

onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT) && Key.isDown (Key.SPACE)) {
gotoAndStop(10);
} else {
gotoAndStop(1)
}
}

probably doesn't fit his code. cuz he probably has other animations besides rolling and isle stance, which I assumed is the animation for the 1st frame.

he doesn't want it to be either frame 10 or frame1.
so...


643.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 12:40 PM

Forum: Flash

last thing. the code won't make ur mc go to frame 1. I can't see ur full code, so I can't see how to fit that in there, so u'll have to do that part.


644.

None

Topic: Action Script Problem (movieclip)

Posted: 08/01/08 12:39 PM

Forum: Flash

At 7/31/08 05:47 PM, ChazzGoth wrote: Hey guys.

at the moment I have a character who moves in a top down perspective, smilair to pokemon/Zelda a link to the past.

I have currently got all walking working fine, so after double clicking the movie clip and finding the frame animation I want, I have added his code to it in order to make him roll when you press the direction and the space bar.

onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT) && Key.isDown (Key.SPACE))
this.gotoAndStop(10);
}

After this, I have added this code to prevent the animation from contunuing after I have released the buttons, unfortunately it does not seem to be working.

onClipEvent(keyUp){
if(Key.getCode() == 39){
this.wSide1.gotoAndStop(1);
}

It has no errors, it just simply will not do what I want it to.

After letting go of the arrow key or the space key I want him to resort back to frame 1 without the animation finishing.

Thanks a lot guys, hope i've given enough detail.

onClipEvent(load){
temp = true;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT) && Key.isDown (Key.SPACE)){
if(temp == true){
temp = false;
this.gotoAndStop(10);
}
} else {
temp = true;
}
}


645.

None

Topic: Keypress help?

Posted: 08/01/08 09:32 AM

Forum: Flash

At 8/1/08 09:06 AM, CaptinChu wrote: Here's a neat little solution. Make an action array. Make it so that the index is a key number you'll be using and every value starts at true. Then

if(Key.isDown(myKey)){
if(actArr[myKey]){
actArr[myKey]=false;
//do stuff
}
} else actArr[myKey]=true;

that looks exactly like what I wrote.

Except why would you need an array?


646.

None

Topic: Keypress help?

Posted: 08/01/08 09:03 AM

Forum: Flash

At 8/1/08 09:02 AM, mayoarm11 wrote: onclipEvent(load){
temp = true;
onClipEvent(enterFrame)}
if(Key.isDown(Key.RIGHT)){
if(temp == true){
//actions
temp = false;
}
}
else
temp = true;
}

onclipEvent(load){
temp = true;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
if(temp == true){
//actions
temp = false;
}
}
else{
temp = true;
}
}

sorry. made some type-o's.

is that even how u spell that shit


647.

None

Topic: Keypress help?

Posted: 08/01/08 09:02 AM

Forum: Flash

onclipEvent(load){
temp = true;
onClipEvent(enterFrame)}
if(Key.isDown(Key.RIGHT)){
if(temp == true){
//actions
temp = false;
}
}
else
temp = true;
}


648.

None

Topic: IF statment maybe?

Posted: 07/31/08 09:52 PM

Forum: Flash

did I not manage to help you via pm?


649.

None

Topic: problem

Posted: 07/31/08 09:50 PM

Forum: Flash

huh? why do you even need AS for this? isn't this practically an interactive movie. All you need for an interactive movie is to know how to handle buttons.


650.

None

Topic: getting stuck on bush :/

Posted: 07/31/08 08:15 PM

Forum: Flash

At 7/31/08 07:34 PM, zrb wrote:
At 7/31/08 07:07 PM, mayoarm11 wrote: onClipEvent(enterFrame){
if(_root.bg.hitTest(_x,_y,true)){
removeMovieClip(this);
}
}
That won't work ;)
onClipEvent(enterFrame){
if(_root.bg.hitTest(_x,_y,true)){
removeMovieClip(this);
this.swapDepths(_root.getNextHighestDept h());
}
}

first of all the swapDepth function won't even be performed, as you delete the MC, so it just goes bye bye and doesnt read the function :)

but if you switched the order of the functions, how would that help? I don't see why you need to swap depth ~_^


651.

None

Topic: The Flash 'Reg' Lounge

Posted: 07/31/08 07:19 PM

Forum: Flash

At 7/31/08 06:10 PM, zrb wrote: In need of opinions
I have made original sketches for characters in my game, and now i made cleaner ones. What do you guys think ?
Link
Click the arrow button to see the next one.

very nice. looks very promising. You should consider adding lighting on the guy's face.


652.

None

Topic: getting stuck on bush :/

Posted: 07/31/08 07:07 PM

Forum: Flash

I also noticed that your bullets don't dissapear when they hit the "bush". Code:

onClipEvent(enterFrame){
if(_root.bg.hitTest(_x,_y,true)){
removeMovieClip(this);
}
}

that simple :D


653.

None

Topic: getting stuck on bush :/

Posted: 07/31/08 07:03 PM

Forum: Flash

you shouldn't have it so his speed is set to 0. You need 4 hitTests, one for each side. code:

onClipEvent(load){
speed= 5;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT) && _root.bg.hitTest(_x+speed,_y,true)){
_x += speed;
}
if(Key.isDown(KeyLEFT) && _root.bg.hitTest(_x-speed,_y,true)){
_x -= speed;
}
if(Key.isDown(Key.DOWN) && _root.bg.hitTest(_x,_y+speed,true)){
_y += speed;
}
if(Key.isDown(KeyLEFT) && _root.bg.hitTest(_x,_y-speed,true)){
_y -= speed;
}
}

make a background movieclip with all your "bushes" in them named bg

what this does is check if the player CAN walk right, and if so, he does. Same for left, up and down.


654.

None

Topic: Help with tile-based flash game

Posted: 07/31/08 04:52 PM

Forum: Flash

still don't get it. Just click the link and see if it helps.


655.

None

Topic: Trouble with Unlocking etc

Posted: 07/31/08 04:01 PM

Forum: Flash

At 7/31/08 03:37 PM, zrb wrote:
At 7/31/08 10:20 AM, mayoarm11 wrote: _root.gotoAndStop(_root.currentframe + 1);
Thats a long and pointless way of writing this:
_root.nextFrame();

oooo fancy! me like :)


656.

None

Topic: Attemp at AI movement

Posted: 07/31/08 03:21 PM

Forum: Flash

At 7/31/08 03:10 PM, bigftballjock wrote: Well this is pretty much my first attempt at some sort of making the 'computer' move on it's own and react to the user (ie: gunfire, movement, etc..).

It's just a test (A, S, D, mouse) to play, any C & C would be great.
(Also, the level number reflects on the speed + health, not necessarily the 'intelligence')

link: clicky

really hope the game isn't nearing completion. I don't want to critique as if it were being submitted to the portal, cuz I know it's not finished. But all I'm saying is it needs work.


657.

None

Topic: Mixing As2 And As3

Posted: 07/31/08 03:14 PM

Forum: Flash

At 7/31/08 03:09 PM, Enterprised wrote: Is there a way to mix one object that is coded for actionscript 2 and have another one that runs on actionscript 3 in the same project? I have learned actionscript 2, and have coded a game in it, but I want a sound spectrum for the music in the background, which apparently is much easier done in AS3. Thanks.

no. Either all AS2 or all AS3.


658.

None

Topic: Trouble with Unlocking etc

Posted: 07/31/08 03:02 PM

Forum: Flash

At 7/31/08 10:25 AM, Twist-Chao06 wrote:

the world2 movieclip

then why do you have a world 2 MC?


659.

None

Topic: side scrolling game help

Posted: 07/31/08 02:41 PM

Forum: Flash

At 7/31/08 02:39 PM, mayoarm11 wrote:

fuck sorry. My browser lagged on me, so... two of the same post. sorry


660.

None

Topic: side scrolling game help

Posted: 07/31/08 02:39 PM

Forum: Flash

At 7/31/08 02:23 PM, dogdgey5 wrote: never mind i got it just put

onClipEvent (enterFrame) {
_x = _root.Hero._x;
_y = _root.Hero._y;
}

and now it follows you

idk what that code means, but this is wut u should have done:

in ur hero, right now u have something like

if(Key.isDown(Key.RIGHT))
_x += speed;

instead, put that on your background movieClip's AS, and reverse the direction, so it should be like:

if(Key.isDown(Key.RIGHT))
_x -= speed;

... :)


All times are Eastern Standard Time (GMT -5) | Current Time: 10:30 PM

<< < > >>

Viewing 631-660 of 1,013 matches. 11019 | 20 | 21 | 22 | 23 | 24 | 252934