Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


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: 'Joelasticot'

We found 803 matches.


<< < > >>

Viewing 1-30 of 803 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91827

1.

None

Topic: (as3) Click event

Posted: 06/04/08 10:42 PM

Forum: Flash

At 6/3/08 10:50 PM, Moonkey wrote: Are any of the MovieClip's children set up to listen for mouse events? They might be receiving the clicks instead.

Try setting mc.mouseChildren = false;

Oh god, that's it. Thanks Moonkey, I looked up mouseChildren and stumbled upon mouseEnabled, and it seems that was it. The problem was that my cursor was registering the clicks instead of the buttons underneath. Thanks!


2.

None

Topic: (as3) Click event

Posted: 06/03/08 10:08 PM

Forum: Flash

Hey, I'm having a bit of trouble using the click Mouse Event. If I set it on the stage :

stage.addEventListener("click", rofl);
function rofl(event:MouseEvent):void {
trace("Lol");
}

it works fine, traces Lol when I click anywhere on the stage. Now, if I try to put it on a movie clip, with the code directly on the main timeline, it also works (MC.addEventListener("click", rofl);)

My problem is when I try to set up the event from within a class, on a movie clip. All other mouse events, such as roll over, work on the target movie clip, but the Mouse Down and Mouse Click events just won't do anything. Any ideas why?


3.

None

Topic: Attention Newgrounders!!

Posted: 04/04/08 08:42 PM

Forum: General

At 4/4/08 08:33 PM, Mizar wrote: Lol. Nice try.

And you, nice sig. Top notch quality there, bro.


4.

None

Topic: dynamic text box in masked layer

Posted: 03/03/08 10:27 PM

Forum: Flash

Put it in a movie clip, and embed your text booooooooooocksssssssshhshshhshshhshhh

dynamic text box in masked layer


5.

None

Topic: Metal Gear Awesome for Ipod!

Posted: 03/02/08 03:23 PM

Forum: Flash

At 3/2/08 03:21 PM, nate845 wrote: and how wud i convert it?

Well, first you will need 4 boneless chicken breast halves


6.

None

Topic: Looking for a game tester.

Posted: 02/28/08 06:24 PM

Forum: Flash

At 2/28/08 06:11 PM, Woadraiders wrote: Any suggestions

Yes, change "moar" to "more".


7.

None

Topic: Stick platform help

Posted: 02/16/08 09:51 PM

Forum: Flash

The reason he's not going to the running frames is because his speed is never above 10. Look at this example, which is using your code :

http://www.ngup.net/view?file=348

You can most likely fix this by adding an if statement to your "xv *= f;", such as

if(!Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
xv *= f;
}


8.

None

Topic: Tweens x Alot = lag?

Posted: 02/16/08 06:58 PM

Forum: Flash

Thanks for the answers, and yeah my shapes are optimized a lot. I'll do some tests and see how it turns out.


9.

None

Topic: Tweens x Alot = lag?

Posted: 02/16/08 06:38 PM

Forum: Flash

Hey.

In this game I'm working on, there will be a lot of tweens on the stage at once (in the hundreds). I'm working on reducing the lag, and I thought maybe tweens issued some?

Currently, all these tweens are movie clips being manipulated. Would it lag less if I converted all the tweens to keyframes?

Please tell me if I did not explain clearly enough.


10.

None

Topic: Can you create a TextFormat array?

Posted: 02/16/08 03:14 PM

Forum: Flash

Try this :

var pidz:Array = new Array();
pidz.push(new TextFormat());
trace(pidz[0].font);


11.

None

Topic: Pseikow: Gota cool zusel the game

Posted: 02/16/08 01:08 PM

Forum: Flash

Holy shit, what?


12.

None

Topic: [AS3] Need help with error

Posted: 02/11/08 11:52 AM

Forum: Flash

If fill_circle is the main class of your flash document, try "extends MovieClip" instead of Sprite. Also, don't forget to import both display.MovieClip and display.Sprite


13.

None

Topic: (as3) Adding Mc's To Stage

Posted: 02/10/08 01:48 PM

Forum: Flash

At 2/10/08 01:33 PM, Paranoia wrote: However, I would reccommend using one clip with all your maps on different frames (if they're unanimated, especially). That way, you can just use something like:

That's what I was thinking at first, but since some of my maps are going to be very large, editing the movie clips could become very laggy. Thanks for the suggestions though!


14.

None

Topic: (as3) Adding Mc's To Stage

Posted: 02/10/08 01:29 PM

Forum: Flash

At 2/10/08 01:26 PM, dELtaluca wrote: As part of the utils package of AS3. there is a function:

Thanks a lot, precisely what I was looking for!


15.

None

Topic: (as3) Adding Mc's To Stage

Posted: 02/10/08 01:19 PM

Forum: Flash

Hey.

I'm working on a game in which maps will be loaded from the library to their respective "holder" movie clips. The thing is, there seems to be no "simple" alternative to AS2's attachMovie.

Let's say my map name is "map1". I want to load the following movie clips from the library :

map1ap
map1bg1
map1bg2

In AS2 I would use :

mapName = "map1";
attachMovie(this[mapName + "ap"] ...)

Now, since I can't give my movie clips an identifier but only a class, my question is : will I have to create a class and a custom script to load each map, like this :

var bg1:map1bg1 = new map1bg1;
addChild(bg1);

... and so on for every layer of every map, or is there a simpler way?

I'm fairly new to AS3 so any help is appreciated.


16.

None

Topic: AS3 gotoAndPlay doesn't play

Posted: 02/02/08 02:11 PM

Forum: Flash

Put all your sprites in movie clips, on different frame :

frame 1 : stand
frame 2 : run.right
frame 3 : run.left
frame 4 : jump

etc.


17.

None

Topic: AS3 gotoAndPlay doesn't play

Posted: 02/02/08 02:04 PM

Forum: Flash

It does play, but if you keep the key pressed, every time it reaches frame 3 it'll gotoAndPlay back to frame 2.


18.

None

Topic: on(release) on a MovieClip?

Posted: 12/11/07 11:09 AM

Forum: Flash

Yep :

on(release){}

It works on movie clips, but if yo don't like it, use a hitTest & onMouseDown


19.

None

Topic: User Reviews, Audio Tools, Rankings

Posted: 09/30/07 03:28 PM

Forum: NG News

My batting average is 4.08, why am I not in the top 50 artists?


20.

None

Topic: Testing a new ad format!

Posted: 08/23/07 02:57 AM

Forum: NG News

AWESOME!!!

* Pop-Up *


21.

None

Topic: Accurate hittesting..

Posted: 08/18/07 01:57 PM

Forum: Flash

if (_root.myPlayer.hitTest(this._x, this._y, true)) {

This code should have worked. You gotta remember that when using shape flag HT, you have to give the exact x and y coordinates

That means if your rock movie clip is inside another movie clip, its _x and _y might not be what you really think they are

In other words, if you want to get the _x and _y of a movie clip which is inside another movie clip, you have to add the parent's x and y

ex. :

X = _x + _parent._x;
Y = _y + _parent._y;
if(_root.hero.hitTest(X, Y, true)){
//do stuff
}


22.

Kissing

Topic: duplicateMovieCli p vs. attachMovie

Posted: 08/17/07 10:37 PM

Forum: Flash

You can simply double click your enemy MC in the library to edit it, and then put the code on the frames so that they are part of the movie clip


23.

None

Topic: Custom preloader AS help

Posted: 08/17/07 08:43 PM

Forum: Flash

At 8/17/07 08:17 PM, IZSBHR wrote: Also, the MC with the instance "bar" won't go to the frame which equals the percent loaded. Please help, thank you.

Denvish answered your questions, though I wanted to add something : you'll have to round the percentLoaded var for the bar to go to that frame:

_root.bar.gotoAndStop(int(PercentLoaded)
);


24.

None

Topic: ArmorBot halp please...

Posted: 08/13/07 10:23 PM

Forum: Flash

Are you using AS 2 or 3? Try changing the variable name to something else (even "Name" would do), to maek sure Flash doesn't mistake your name variable for the name property of your text box


25.

None

Topic: More help with AS...

Posted: 08/13/07 10:21 PM

Forum: Flash

Not sure if you still need help with this but anyway :

You can put the whole thing in an enterFrame handler, and use else's to set the frame :

onClipEvent (enterFrame){
if (Key.isDown(Key.RIGHT)) {
gotoAndStop(2);
}else{
if(jumping){
gotoAndStop(3);
}else{
gotoAndStop(1);
}
}
}

So basically this script asks :

Holding "right" key?
yes => goto frame 2
no => Jumping = true?
yes => goto frame 3
no => goto frame 1


26.

None

Topic: sit on top of an mc?

Posted: 08/10/07 05:19 PM

Forum: Flash

At 8/10/07 05:11 PM, biskits wrote: but one question... see my original script would i put that unders yours except change hit1 to ,say, broken tile so when you drag the hammer to the broken tile it will make the broken tile go to the second frame to i could take another item out of there.... or is that wrong?

Yeah it's possible, dunno if our two codes mixed would turn out well, but I can edit the one I gave you a bit so that you can easily add new items to the game and make them interact with certain stuff

Start by adding this to the onClipEvent(load) of the hammer :

var correct:String = "brokenTile";

With this variable you'll be able to define where items should go, brokenTile being your tile's instance name

Now add this to the onClipEvent(mouseUp), just after the for() loop :

if(this.hitTest(_root[correct])){
target = correct;
_root[correct].nextFrame();
}

In other words, when you stop dragging the item, it'll check if it's touching the place where it should be used. If so, then this place will be its new target and the other movie clip will go to the next frame


27.

None

Topic: sit on top of an mc?

Posted: 08/10/07 05:02 PM

Forum: Flash

I can help but before I must be sure I understand correctly;

The hammer is a draggable item, and you want it to stick to one of the boxes when it's dragged there, right?

If that is so, try this (with inventory slots named hit1, hit2 - hit5) :

onClipEvent(load){
var initx:Number = _x;
var inity:Number = _y;
var target:String = "this";
var drag:Boolean = false;
//target will be the MC on which the draggable item will stick
//unless it is being dragged
}
onClipEvent(enterFrame){
if(drag){
_x = _root._xmouse;
_y = _root._ymouse;
}else{
_x = _root[target]._x;
_y = _root[target]._y;
}
}
onClipEvent(mouseDown){
if(this.hitTest(_root._xmouse, _root._ymouse)){
initx = _x;
inity = _y;
drag = true;
_root[target].taken = false;
target = "this";
//when dragging starts, it sets the "taken" variable of its
//previous target to false, so it can hold another item
}
}
onClipEvent(mouseUp){
drag = false;
for(i:Number = 0; i <= 5; i ++){
if(this.hitTest(_root["hit"+i]) && !_root["hit"+i].taken){
target = "hit"+i;
_root["hit"+i].taken = true;
break;
//scroll through hit1 to hit5 -> if it touches it, and it's
//not taken, then set this as target and stop loop.
}
}
if(target == "this"){
_x = initx;
_y = inity;
//if it did not touch an inventory slot, reset position
}
}

This code, when applied to a MC, will make it behave as a draggable item

If that's not what you need feel free to ask


28.

None

Topic: Armor Gaming Challenge 6 :)

Posted: 08/09/07 05:44 PM

Forum: Flash

Hey IngL, I have a question; can I use custom AG links and intro? It's not that I dislike the official ones, but they don't really fit with the kind of game I'm making


29.

None

Topic: I got a birthday present from Adobe

Posted: 08/08/07 04:11 PM

Forum: Flash

HAPPY BIRFDAY


30.

None

Topic: wtf???help me!

Posted: 08/07/07 04:32 PM

Forum: Flash


All times are Eastern Daylight Time (GMT -4) | Current Time: 02:26 AM

<< < > >>

Viewing 1-30 of 803 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91827