Forum Topic: As: Main

(472,471 views • 1,577 replies)

This topic is 53 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 93153 ]

<< < > >>
None

Rustygames

Reply To Post Reply & Quote

Posted at: 6/23/05 05:08 PM

Rustygames LIGHT LEVEL 18

Sign-Up: 05/07/05

Posts: 6,650

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


None

Toast

Reply To Post Reply & Quote

Posted at: 6/23/05 05:10 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,907

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


None

T-H

Reply To Post Reply & Quote

Posted at: 6/23/05 05:18 PM

T-H LIGHT LEVEL 39

Sign-Up: 01/07/04

Posts: 4,894

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.


None

Toast

Reply To Post Reply & Quote

Posted at: 6/23/05 05:21 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,907

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 >:)


None

Rustygames

Reply To Post Reply & Quote

Posted at: 6/23/05 05:25 PM

Rustygames LIGHT LEVEL 18

Sign-Up: 05/07/05

Posts: 6,650

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


None

liaaaam

Reply To Post Reply & Quote

Posted at: 6/26/05 11:04 AM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,501

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.


None

liaaaam

Reply To Post Reply & Quote

Posted at: 6/26/05 03:01 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,501


None

Denvish

Reply To Post Reply & Quote

Posted at: 6/27/05 07:22 PM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

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

None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/27/05 07:28 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

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.


None

Inglor

Reply To Post Reply & Quote

Posted at: 6/27/05 08:28 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948


None

Denvish

Reply To Post Reply & Quote

Posted at: 6/28/05 10:41 AM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

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

None

GeoffCLogan

Reply To Post Reply & Quote

Posted at: 6/28/05 10:44 AM

GeoffCLogan LIGHT LEVEL 11

Sign-Up: 04/25/04

Posts: 4,424

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.


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 10:46 AM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

Thanks Denvish! You included mine!!


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 6/28/05 02:13 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 02:21 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

These are the two I have made so far:

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


None

Inglor

Reply To Post Reply & Quote

Posted at: 6/28/05 02:39 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 02:43 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

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??


None

Inglor

Reply To Post Reply & Quote

Posted at: 6/28/05 02:49 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

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

I made 5 today :)


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 02:52 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

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!


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 03:06 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

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


None

Denvish

Reply To Post Reply & Quote

Posted at: 6/28/05 03:24 PM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

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

None

Inglor

Reply To Post Reply & Quote

Posted at: 6/28/05 03:27 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

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?


None

Dancing-Thunder

Reply To Post Reply & Quote

Posted at: 6/28/05 03:27 PM

Dancing-Thunder NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 278

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


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 6/28/05 03:35 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030

Hey, what about my other collision topic?

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


None

Denvish

Reply To Post Reply & Quote

Posted at: 6/28/05 03:42 PM

Denvish DARK LEVEL 45

Sign-Up: 04/25/03

Posts: 16,238

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

None

Inglor

Reply To Post Reply & Quote

Posted at: 6/28/05 03:44 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

did you just forget it again :P?


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 6/28/05 03:45 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030

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


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 6/28/05 03:46 PM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,030

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


None

Inglor

Reply To Post Reply & Quote

Posted at: 6/28/05 03:48 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

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


All times are Eastern Standard Time (GMT -5) | Current Time: 12:18 PM

<< Back

This topic is 53 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 93153 ]

<< < > >>
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!