00:00
00:00
Newgrounds Background Image Theme

jailander1 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

As: Main

727,836 Views | 1,493 Replies
New Topic Respond to this Topic

Response to As: Main 2005-06-23 17:08:20


At 6/23/05 04:22 PM, Dark_Toaster wrote: Are you good at API?I want to make a API thread :P
But I will let you make it since I am not really good at API 8-| Or maybe DEADSIM2,he is awsome at API!

I seriously dont see the point of using API in flash it is not necessary. Well okay it has SOME uses but not enough to make a whole topic about it. I mean seriously API is the most BASIC of BASIC of programming. I used to do a little API turtle thing when I was in primary school and to this very day I think it is piss easy and boring. In fact I dont know if anyone has got the PS2 program YABASIC but it is really cool because you can make little PS2 (playstation 2) games using the "BASIC" programming language. Anyways (off topic there) I think API is dumb and I have only ever really used it when making a 3D game (obviously not in flash)


- Matt, Rustyarcade.com

Response to As: Main 2005-06-23 17:10:23


API is not that basic,dude.And even if it is,beginners have to start from somewhere,don't they?


BBS Signature

Response to As: Main 2005-06-23 17:18:59


As I said, drawing API is a niche, it has its practical uses but is not something that would be extensively used (unless you check out JafitMan's Jetlag game, OMG that is fucking amazing!) Nevertheless, I find it fascinating, especially to pass the time when you are bored.

-And no, I am not good at API, i suck : ) At the moment i just stare in awe after I draw a triangle and tile it across the screen. Yes it really is that impressive.

Response to As: Main 2005-06-23 17:21:09


At 6/23/05 05:18 PM, T-H wrote: -And no, I am not good at API, i suck : ) At the moment i just stare in awe after I draw a triangle and tile it across the screen. Yes it really is that impressive.

Hahaha,me too,the best thing I have drawn so far is a crappy looking pistol >:)


BBS Signature

Response to As: Main 2005-06-23 17:25:12


At 6/23/05 05:21 PM, Dark_Toaster wrote:
At 6/23/05 05:18 PM, T-H wrote: -And no, I am not good at API, i suck : ) At the moment i just stare in awe after I draw a triangle and tile it across the screen. Yes it really is that impressive.
Hahaha,me too,the best thing I have drawn so far is a crappy looking pistol >:)

Best thing to do is plan it on grided paper. Never just geuss it! ha. Well yeah API has a few uses but nothing good.


- Matt, Rustyarcade.com

Response to As: Main 2005-06-26 11:04:55


At 6/23/05 05:25 PM, Ninja-Chicken wrote: Well yeah API has a few uses but nothing good.

I made a full game in API.

onLoad = function () {
time = 0;
rand1 = random(250)+25;
_root.createEmptyMovieClip("wall1", 10);
with (wall1) {
lineStyle(5, 0x000000, 100);
moveTo(0, 200);
lineTo(rand1, 200);
}
_root.createEmptyMovieClip("wall2", 11);
with (wall2) {
lineStyle(5, 0x000000, 100);
moveTo(rand1, 250);
lineTo(550, 250);
}
_root.createEmptyMovieClip("wall3", 12);
with (wall3) {
lineStyle(5, 0x000000, 100);
moveTo(rand1, 200);
lineTo(rand1, 250);
}
_root.createEmptyMovieClip("char1", 50);
with (char1) {
lineStyle(2, 0xFFFFFF, 100);
moveTo(_x-15, _y-15);
beginFill(0xFFFFFF, 50);
lineTo(_x+15, _y-15);
lineTo(_x+15, _y+15);
lineTo(_x-15, _y+15);
lineTo(_x-15, _y-15);
endFill();
}
_root.createEmptyMovieClip("char2", 49);
with (char2) {
lineStyle(2, 0xFFFFFF, 50);
moveTo(_x-15, _y-15);
beginFill(0xFFFFFF, 30);
lineTo(_x+15, _y-15);
lineTo(_x+15, _y+15);
lineTo(_x-15, _y+15);
lineTo(_x-15, _y-15);
endFill();
}
_root.createEmptyMovieClip("coin1", 100);
with (coin1) {
lineStyle(2, 0xFFFF00, 100);
beginFill(0xFFCC00, 100);
lineTo(_x+10, _y);
lineTo(_x+10, _y+10);
lineTo(_x, _y+10);
lineTo(_x, _y);
endFill();
}
_root.createEmptyMovieClip("base", 0);
with (base) {
lineStyle(1, 0x000000, 0);
moveTo(0, 200);
beginFill(0x00CC66, 100);
lineTo(rand1, 200);
lineTo(rand1, 250);
lineTo(550, 250);
lineTo(550, 400);
lineTo(0, 400);
lineTo(0, 200);
endFill();
}
score = 0;
score.txt = 0;
coin1._x = random(400)+50;
coin1._y = random(180);
};
onEnterFrame = function () {
myRadians = Math.atan2(char1._y-char2._y, char2._y-char2._x);
_root.yChange = Math.round(char1._y-char2._y);
_root.xChange = Math.round(char1._x-char2._x);
_root.yMove = Math.round(_root.yChange/1.5);
_root.xMove = Math.round(_root.xChange/1.5);
char2._y += _root.yMove;
char2._x += _root.xMove;
time += 1;
if (time == 600) {
time = 0;
score -= 10;
}
if (0>score) {
char1.removeMovieClip();
char2.removeMovieClip();
_root.createEmptyMovieClip("lose1", 100000);
with (lose1) {
lineStyle(3, 0x000000, 100);
lineTo(0, 50);
lineTo(5, 50);
moveTo(10, 50);
lineTo(10, 0);
lineTo(30, 0);
lineTo(30, 50);
lineTo(10, 50);
moveTo(55, 0);
lineTo(35, 0);
lineTo(35, 25);
lineTo(55, 25);
lineTo(55, 50);
lineTo(35, 50);
moveTo(80, 0);
lineTo(60, 0);
lineTo(60, 50);
lineTo(80, 50);
moveTo(60, 25);
lineTo(80, 25);
}
}
if (char1.hitTest(wall1) || char1.hitTest(wall2)) {
} else {
char1._y += 3;
}
if (Key.isDown(Key.LEFT)) {
if (char1.hitTest(wall3)) {
} else {
char1._x -= 5;
}
}
if (Key.isDown(Key.RIGHT)) {
char1._x += 5;
}
if (Key.isDown(Key.UP)) {
char1._y -= 5;
}
if (char1.hitTest(coin1)) {
coin1._x = random(400)+50;
coin1._y = random(180);
bell1 = new Sound();
bell1.attachSound("ding1");
bell1.start(0, 1);
bell1.setVolume(random(200)+50);
score += 1;
}
if (Key.isDown(Key.SPACE)) {
trace("Your score is "+score);
}
};

I'll make a AS: API topic now.


Sup, bitches :)

BBS Signature

Response to As: Main 2005-06-26 15:01:06



Sup, bitches :)

BBS Signature

Response to As: Main 2005-06-27 19:22:00


I was going to recreate this topic with update links, but I decided that would destroy the integrity of the system (many of the AS: threads link back to this topic ID), so I'm just going to reiterate the first post, update the list

This is different to the 'Actionscripts here' thread, in that each subject that crops up time and time again will have its own thread, named (for example) AS: Basic Movement. Each thread, once created, will be a place to add refinements to the code or different variations... so all you coders, feel free to contribute with script or relevant links.

If anybody else fancies creating such a thread, please fell free - name it AS: whatever, and preferably post a link to it in this thread.

These will not be tutorials as such, just snippets of code with basic instructions on where to put them, and any links that seem relevant.

Here's what we have so far. THANK YOU to the other guys who have contributed their knowledge.

AS: Preloader
AS: Sound
AS: Basic Movement
AS: Collision Detection by BleeBlap
AS: Random Movement by Begoner
AS: Movement on slopes by Joelasticot
AS: Save and Load
AS: Clock by Glaiel_Gamer
AS: Pong physics & gravity by Dark_Toaster
AS: API by -liam-

If anybody has suggestions for AS: threads that should be covered, please post them. The ones I can think of off-hand are:

Arrays
duplicateMovieClip/attachMovieClip
loadMovie
Swf context menu

Thanks to neoMonk in particular for actually using these resource threads; it's all very well myself and others creating them, but there's no real point unless people are sent to read them when they ask a relevant question.

I'm going to post a few other miscellaneous links while I'm here, some of these may turn into full AS: threads if/when I get round to it

Sham Bhangal's Flash V-Cam - Zooming made easy
Cross-domain scoreboard info (my last post in thread)
Cross-domain policies
Flash/ASP scoreboard
Flash/PHP scoreboard
Enemy follow & attack (top down) (4th post in thread)
Sound fadeout
Sorting numbers in arrays
attachSound
Introduction to OOP
Protect your swf

How to: Flash to animated .gif
NG Preloader
Deadlock32 NG Preloader
Liveswif 2.2 (Alternative to Macromedia Flash)


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-06-27 19:28:38


Hey denvish, what about a gta engine? Check out my thread "Im working on a gta style engine" at this link:

The Engine.

I dont know, its just a suggestion.

Response to As: Main 2005-06-27 20:28:48


Response to As: Main 2005-06-28 10:41:13


Done a couple more today, plus I included Dancing-Thunder's one.

For people who are contemplating creating AS: threads, please try and keep them simple enough that a beginner-intermediate Flash user can understand. As I've said in previous posts, these threads are NOT designed to be tutorials; but having said that, it's necessary to supply a little detail besides code snippets (like, where the code should go, for example).

Bear in mind that the majority of people who will be linked to the AS threads will be relatively new to Flash; it's no good drowning them in a sea of pure code (tempting as it is sometimes)

Anyway, here's the updated list, arranged alphabetically at GeoffCLogan's request =)

AS: API by -liam-
AS: Arrays
AS: Clock by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Duplicated Movie Clips
AS: Movement - Basic
AS: Movement - Random by Begoner
AS: Movement - On slopes by Joelasticot
AS: Movement - GTA-style (car/person switch) by Dancing-Thunder
AS: Pong physics & gravity by Dark_Toaster
AS: Preloader
AS: Save and Load
AS: Sound

Sorry about the predominance of AS: threads in the Flash forum today, don't worry, they'll sink again soon enough...


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-06-28 10:44:26


At 6/28/05 10:41 AM, Denvish wrote:
Anyway, here's the updated list, arranged alphabetically at GeoffCLogan's request =)

Yay :D.

Sorry about the predominance of AS: threads in the Flash forum today, don't worry, they'll sink again soon enough...

It's better than the collab catastrophe. At least the AS: threads are productive.

Response to As: Main 2005-06-28 10:46:45


Thanks Denvish! You included mine!!

Response to As: Main 2005-06-28 14:13:52


Response to As: Main 2005-06-28 14:21:42


These are the two I have made so far:

AS: A.I.
AS: Movement-GTA Style-Switch controls on/off foot

Response to As: Main 2005-06-28 14:23:24


Response to As: Main 2005-06-28 14:39:39


Response to As: Main 2005-06-28 14:43:41


AS: A.I.
AS: Ways a MC can follow your mouse

Hey Denvish, do you know why there have been so many AS threads today??

Response to As: Main 2005-06-28 14:49:55


maybe because it was a good idea ;) (the whole AS: thing)

I made 5 today :)

Response to As: Main 2005-06-28 14:52:02


At 6/28/05 02:49 PM, Inglor wrote: maybe because it was a good idea ;) (the whole AS: thing)

I made 5 today :)

Well, the more, the merrier!

Response to As: Main 2005-06-28 15:06:43


Denvish, do you have any more ideas for AS threads? Im very bored and I wanna make one!

Response to As: Main 2005-06-28 15:24:47


At 6/28/05 02:23 PM, Inglor wrote: AS: Analyzing the NG preloader

I'm not going to add that one to the list, since I don't think it really covers anything that AS: Preloader hasn't already.

At 6/28/05 02:43 PM, Dancing-Thunder wrote: AS: Ways a MC can follow your mouse

I think that one is too basic to include, it's basically the same as startDrag. Sorry.

Hey Denvish, do you know why there have been so many AS threads today??

Maybe because I made a couple this morning, and bumped a couple of the older ones at the same time

At 6/28/05 02:49 PM, Inglor wrote: maybe because it was a good idea ;) (the whole AS: thing)

Well as you can see from the first post in this thread, I started it back in Feb, but it didn't really catch on at that point

At 6/28/05 03:06 PM, Dancing-Thunder wrote: Denvish, do you have any more ideas for AS threads? Im very bored and I wanna make one!

I think we've got enough for one day. There's no point doing it to death. Also, it's better if you spend some time fully comprehending the concept behind a code snippet, before you try to teach it to other people

Thanks to everyone who has taken the time to make topics today. Here's the list:

AS: API by -liam-
AS: Arrays
AS: Basic A.I. by Dancing-Thunder
AS: Binary Increasement by Inglor
AS: Clock by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Conditions and Loops by BleeBlap
AS: Debugging Syntax by Inglor
AS: Duplicated Movie Clips
AS: Linear Increasement by Inglor
AS: Movement - Basic
AS: Movement - Random by Begoner
AS: Movement - On slopes by Joelasticot
AS: Movement - GTA-style (car/person switch) by Dancing-Thunder
AS: Pong physics & gravity by Dark_Toaster
AS: Preloader
AS: Save and Load
AS: Sound


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-06-28 15:27:39


At 6/28/05 03:24 PM, Denvish wrote:
At 6/28/05 02:23 PM, Inglor wrote: AS: Analyzing the NG preloader
I'm not going to add that one to the list, since I don't think it really covers anything that AS: Preloader hasn't already.

meh ok ;) I guess you're right

you forgot one of my AS: threads though, the syntax checking with stack, or is that out too?

Response to As: Main 2005-06-28 15:27:50


What! My AS: Mouse thing didnt make it! Ha Ha lol! I was kidding. To be honest, I just made it because I felt like it! :b

Response to As: Main 2005-06-28 15:35:31


Hey, what about my other collision topic?

And how about this: The AS: Collab! lol jk

Response to As: Main 2005-06-28 15:42:48


At 6/28/05 03:27 PM, Inglor wrote: you forgot one of my AS: threads though, the syntax checking with stack, or is that out too?

Nope, I just forgot it.

At 6/28/05 03:35 PM, Glaiel_Gamer wrote: Hey, what about my other collision topic?

Oops, I could have sworn that was on the list

Depending on how often each of the topics get referred to, I may whittle the list down, or have an abridged list with just the more basic stuff. It's nice to have a decent-sized full list though.

AS: API by -liam-
AS: Arrays
AS: Basic A.I. by Dancing-Thunder
AS: Binary Increasement by Inglor
AS: Clock by Glaiel_Gamer
AS: Collision by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Conditions and Loops by BleeBlap
AS: Debugging Syntax by Inglor
AS: Duplicated Movie Clips
AS: Linear Increasement by Inglor
AS: Movement - Basic
AS: Movement - Random by Begoner
AS: Movement - On slopes by Joelasticot
AS: Movement - GTA-style (car/person switch) by Dancing-Thunder
AS: Pong physics & gravity by Dark_Toaster
AS: Preloader
AS: Save and Load
AS: Sound


- - Flash - Music - Images - -

BBS Signature

Response to As: Main 2005-06-28 15:44:58


did you just forget it again :P?

Response to As: Main 2005-06-28 15:45:11


Denvish, what If we took all the AS: topics and put them into a flash as a huge actionscript tutorial?

Response to As: Main 2005-06-28 15:46:47


At 6/28/05 03:44 PM, Inglor wrote: did you just forget it again :P?

"AS: Debugging Syntax by Inglor"

Could that be it?
double post blah

Response to As: Main 2005-06-28 15:48:19


no, I meant the your own scripting language syntax checking, not the flash correct syntax

meh, making it into an actual flash would take time, but it will probebly be worth it