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

We found 3,031 matches.


<< < > >>

Viewing 1-30 of 3,031 matches. 1 | 2 | 3 | 4 | 5 | 6 | 754102

1.

None

Topic: AS2: Change frame rate

Posted: 08/26/09 02:53 AM

Forum: Flash

At 8/26/09 02:30 AM, DeuceNine wrote:
At 8/26/09 02:18 AM, johnfn wrote: There is no built in way in AS2. That functionality was added in AS3.

You might be able to rig it with setInterval though.
Oh jeez. Then how does it go in AS3?

You can just go frameRate = 24 or whatever.


2.

None

Topic: AS2: Change frame rate

Posted: 08/26/09 02:18 AM

Forum: Flash

At 8/26/09 12:33 AM, DeuceNine wrote: I'm compiling a bunch of clips from different flash movies to put them all into a single movie, but they all have different frame rates to begin with. Is there an actionscript (preferably 2.0) that allows me to change the frame rate from scene to scene or from one frame to the other?

(Don't worry, this isn't for a "Demo Reel" for me to waste Newgrounds' space)

There is no built in way in AS2. That functionality was added in AS3.

You might be able to rig it with setInterval though.


3.

None

Topic: simple code for item menu

Posted: 08/23/09 01:30 AM

Forum: Flash

Why don't you learn about arrays.


4.

None

Topic: AS3 Arrange different sized sprites

Posted: 08/23/09 12:30 AM

Forum: Flash

do{
object.x = Math.rand()*550;
object.y = Math.rand()*400;
} while (object.hitTestAllOtherObjects)

Nah... I'm just kidding. Here is the way I would do it.

objects.sort(bySize);
for each (var obj in objects){
for each (corner in the left over space) {
if (obj.fitsIn(corner){
obj.place(topRightCornerLocation);
break;
}
}
if (couldNotPlaceObject){
trace ("OMG FAILURE. TRY THIS AGAIN WITH LESS OBJECTS");
}
}

You might notice that I left out details of the code. That's because it will be tough to implement and I don't get paid enough to write out an entire implementation for this sort of thing...


5.

None

Topic: Scripting a cam to follow [as3]

Posted: 08/20/09 08:51 PM

Forum: Flash

At 8/20/09 07:47 PM, bladeofluigi wrote: I put it on two frames looping

This is your problem. Keep it on one frame. You want to put it on an onEnterFrame thing - I forget the exact AS2 code.


6.

None

Topic: An As Request From An As Noob.

Posted: 08/20/09 08:49 PM

Forum: Flash

You'll want to use the swapDepths function. Try looking it up in the docs.


7.

None

Topic: Pause button

Posted: 08/20/09 08:23 PM

Forum: Flash

Hmmm... Perhaps you want to add more code that sets pause equal to 1 again. :P


8.

None

Topic: Changing size of the canvas on CS3

Posted: 08/20/09 06:46 PM

Forum: Flash

Seems like you want to edit multiple frames. Click on the box under the timeline with 2 blue squares on it. Now you are editing multiple frames. Drag the things above the timeline to encompass every frame that you want to edit, then edit them all at once. Done!


9.

None

Topic: As3...

Posted: 08/20/09 04:59 PM

Forum: Flash

At 8/20/09 04:12 PM, Paranoia wrote: Not really. The differences are largely superficial - if you're an expert in AS2 the transition to 'expert' in AS3 should be pretty smooth. All of the theory about returns and classes and how to put a game together is constant no matter what language you use.

Pretty much true. There are like 5 new differences that will be stumbling blocks. Plus, not having to arbitrarily use underscores on build in variables is glorious!


10.

None

Topic: What do you think me ?

Posted: 08/20/09 02:42 PM

Forum: Flash

I refreshed the dumb thing 3 times and the explosion just wouldn't explode. I'm not sure quite what's wrong with it.. try a preloader?


11.

None

Topic: Auto format button ]=

Posted: 08/19/09 04:39 PM

Forum: Flash

At 8/19/09 02:31 PM, henke37 wrote: While I have my connections ;-) , it's just a matter of making sure it's a real bug and then using the appropriate means for reporting it.

It is a real bug... If you need more, just ask me, I can replicate it.


12.

None

Topic: Actionscript

Posted: 08/19/09 03:35 PM

Forum: Flash

At 8/19/09 01:53 PM, JoSilver wrote:
F!@K THAT!!!!

Just look at this!

http://www.newgrounds.com/portal/view/30 2147

Hey, that's mine! Thanks! :D

i agree, best tutorial in the world ever

13.

None

Topic: CS4 to Flash 8

Posted: 08/19/09 03:32 PM

Forum: Flash

At 8/19/09 03:00 PM, 7IsUnlucky wrote: Is there any way to convert a CS4 .fla to a Flash 8 .fla, aside from converting it to CS3 and giving it to someone with CS3 to convert to flash 8?

There is no way other than sending it to a friend with CS3.


14.

None

Topic: Auto format button ]=

Posted: 08/18/09 07:49 PM

Forum: Flash

At 8/18/09 06:56 PM, knugen wrote: Well, coding in the Flash IDE is slow no matter you do it.

FlashDevelop <3

Second on FlashDevelop. Awesome software.

I've run into the autoformat bug before as well. I'm pretty sure it has to do with calling a function with a new function created on the fly as one of the arguments.


15.

None

Topic: items not working

Posted: 08/18/09 11:59 AM

Forum: Flash

It's because you keep telling it go to the same frame and stop every time, so if it's already there it will just reset.

So fix it.


16.

None

Topic: Madness day'09 preloader

Posted: 08/17/09 06:56 PM

Forum: Flash


17.

None

Topic: streaming audio

Posted: 08/17/09 06:23 PM

Forum: Flash

At 8/17/09 02:36 PM, Balderdashington wrote: Also in flash, if you go to "publish settings" under "File" ,in the flash tab you can set the quality of the exported audio.

This.

Don't stream your audio from a website unless you have plenty of bandwidth to spare or you're positive that your game absolutely sucks.


18.

None

Topic: My Lifetime Girl advice to...

Posted: 08/17/09 06:18 PM

Forum: General

This thread is like spitting in a desert.

cleechay

This is the worst butchering of the word "cliche" I have ever seen in my life. I laughed out loud.

Anyway, #1, #3 and #6 are the most important, but #6 should really be first.


19.

None

Topic: The evolution of music.

Posted: 08/16/09 03:31 PM

Forum: General

Music on the radio always sucked, excepting the Beatles. Good modern bands are out there, I promise.


20.

None

Topic: Okay, I've tried it.

Posted: 08/16/09 01:59 AM

Forum: Flash

At 8/16/09 01:34 AM, Genocide wrote: select everything you want to group, and press ctrl+group, it's like a graphic, but it doesn't go to the library.

I believe you meant ctrl+g :P


21.

None

Topic: How many things can you submit/day?

Posted: 08/14/09 08:03 PM

Forum: Where is / How to?

Due to increased festivity etc, I might submit 2-3 things tomorrow. Will that work out? I know that the audio portal has a limit.


22.

None

Topic: As2: Cards, Random, Probability

Posted: 08/13/09 04:33 PM

Forum: Flash

There was a problem with my last post... Math.ceil should be Math.floor.


23.

None

Topic: As2: Cards, Random, Probability

Posted: 08/13/09 04:31 PM

Forum: Flash

var usedArray:Array = [];

var cardsArray ["2 of clubs", "2 of hearts", "10 of spades" ... 

function drawCard():String{
if (usedArray.length == 52) return "";

var returnValue;
do{
returnValue = cardsArray[Math.ceil(Math.random()*52)];
} while (usedArray.indexOf(returnValue) != -1)

return returnValue;
}

A more optimal way is to just remove the used card value from the array, but who cares about optimization?


24.

None

Topic: comments

Posted: 08/12/09 02:32 PM

Forum: Flash

At 8/12/09 02:28 AM, david81792 wrote: I made this shit in like 100 seconds. What do you think?

I think you should take more than 100 seconds to make something next time.


25.

None

Topic: Looking for coder/Artist!

Posted: 08/11/09 10:17 PM

Forum: Flash

Er.. if you need both a coder and an artist, then what exactly are you going to do?


26.

None

Topic: a real actionscript question

Posted: 08/11/09 09:37 PM

Forum: Flash

An explanation of your code is in order, but if you're just going to say "I coped it out of a book" then you may as well start over again by actually learning AS.


27.

None

Topic: Beta test my game!

Posted: 08/11/09 09:23 PM

Forum: Flash

At 8/11/09 08:40 PM, chickendance333 wrote: No excuse for that high of a file size. compress the god damn music, it takes like 30 seconds.

I already compressed the music, so I had to turn to more devious tricks. However, I have gotten the filesize down to about half of what it is (a bit over 2 MB). Hopefully that's acceptable!

Here is the link!


28.

None

Topic: Beta test my game!

Posted: 08/11/09 08:37 PM

Forum: Flash

Here is the new link!

New features:

* You slowly regenerate used bombs.

* Your time machine slowly regenerates power after use.

Bugfixes:

* Every bug on the page! So feel free to report back with more. Thanks especially to Doomsday-One, the amount of feedback you gave was incredible!

At 8/11/09 07:34 PM, Genocide wrote: work on optimization. clips need REMOVED after they leave the stage.

The problem was actually more subtle than you give me credit for, but no worry, it is fixed!


29.

None

Topic: Why do people think it's "cool" to

Posted: 08/11/09 08:07 PM

Forum: General

C'est la vie.


30.

None

Topic: Classes...is there any point?

Posted: 08/11/09 06:27 PM

Forum: Flash

Is this the right approach to OOP?

There is no single 'right approach', but it's looking fine.

What exactly is a singleton?

A class that only ever has one copy of itself.

How would you share info across classes?

A few different ways:

- public static functions (or member variables)

- return values from functions called

- (the least OOP way) public variables

It's all about having a reference to the class somewhere in the other class. After you've got that down, the rest is easy.


All times are Eastern Standard Time (GMT -5) | Current Time: 07:11 AM

<< < > >>

Viewing 1-30 of 3,031 matches. 1 | 2 | 3 | 4 | 5 | 6 | 754102