Forum Topic: As: Main

(475,038 views • 1,577 replies)

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

<< < > >>
None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 11:07 AM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

lol, I deleted my post on the original page so I could get this at the top of page 5

BASIC
AS: Basic A.I. by Dancing-Thunder
AS: Clock by Glaiel_Gamer
AS: Conditions and Loops by BleeBlap
AS: Duplicated Movie Clips
AS: For... in loops by Inglor
AS: Movement - Basic
AS: Movement - Scrolling background by DrDeath2k3
AS: Password by Dancing-Thunder
AS: Performance & Optimisation Tips by T-H
AS: Preloader
AS: Quality Toggling
AS: Sound
AS: Symbols by Joelasticot
AS: Variables by Dark_Toaster

INTERMEDIATE
AS: Arrays
AS: Collisions by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Debugging Syntax by Inglor
AS: Functions - Basic by Inglor
AS: Intervals by Inglor
AS: Linear Increasement by Inglor
AS: Movement - On slopes by Joelasticot
AS: Pong physics & gravity by Dark_Toaster
AS: Save and Load
AS: SWF right-click menu
AS: Typewriter Effect by Atomic_Sponge

ADVANCED
AS: API by -liam-
AS: Binary Increasement by Inglor
AS: Checking Stack Syntax by Inglor
AS: Movement - Random by Begoner
AS: OOP (Object Oriented Programming) by Inglor
AS: XML by Inglor

- - Flash - Music - Images - -

BBS Signature

None

BrotherToast

Reply To Post Reply & Quote

Posted at: 7/1/05 11:11 AM

BrotherToast NEUTRAL LEVEL 04

Sign-Up: 03/05/05

Posts: 141

At 7/1/05 11:03 AM, Grouchy-Grandpa wrote: How about a AS: RPG? Lol, I don't know, it might be hard to explain a whole RPG in one thread.

This will be included in the second or third game developpement tutorial.

Hmm..I tried to play around with yscale and xscale and this is what I came up with:

onClipEvent(load)
{
z1 =5-this._xscale/150;
z2 =5-this._yscale/150;
}
onClipEvent(enterFrame)
{
if(Key.isDown(Key.DOWN))
{
this._xscale+=z1;
this._yscale+=z2;
}
if(Key.isDown(Key.UP))
{
this._xscale-=z1;
this._yscale-=z2;
}
if(Key.isDown(Key.LEFT))
{
this._x-= 5+this._xscale/30;
}
if(Key.isDown(Key.RIGHT))
{
this._x+= 5+this._xscale/30;
}
}


None

Galactic-Shit-Head

Reply To Post Reply & Quote

Posted at: 7/1/05 11:16 AM

Galactic-Shit-Head NEUTRAL LEVEL 03

Sign-Up: 06/30/05

Posts: 201

Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?


None

b2da

Reply To Post Reply & Quote

Posted at: 7/1/05 11:16 AM

b2da EVIL LEVEL 02

Sign-Up: 04/09/05

Posts: 206

Thanks for the links Denvish, i'll bookmark this page.


None

BrotherToast

Reply To Post Reply & Quote

Posted at: 7/1/05 11:17 AM

BrotherToast NEUTRAL LEVEL 04

Sign-Up: 03/05/05

Posts: 141

At 7/1/05 11:16 AM, Grouchy-Grandpa wrote: Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?

It's when I get the quota of 4 replys in one hour,I hope it's not against the rules...


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 11:19 AM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

At 7/1/05 11:16 AM, Grouchy-Grandpa wrote: Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?

Yeah. To be perfectly honest, I'd rather not see antipostlimit accounts being used unless absolutely necessary. Anyone who uses them is risking a ban. The posting limits are there for a reason, and neither time today has there been any particular urgency to post again within 30 minutes.

- - Flash - Music - Images - -

BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 12:13 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

At 7/1/05 11:19 AM, Denvish wrote:
At 7/1/05 11:16 AM, Grouchy-Grandpa wrote: Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?
Yeah. To be perfectly honest, I'd rather not see antipostlimit accounts being used unless absolutely necessary. Anyone who uses them is risking a ban. The posting limits are there for a reason, and neither time today has there been any particular urgency to post again within 30 minutes.

A ban?Is it against the rules?
"the posting limits are there for a reason"
What's the reason?
I think it's a bit stupid,4 posts in less than 30 minutes doesn't necessarly mean spam.
But anyway,I don't want to start quarreling with a moderator..


None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 12:27 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

Oops,I forgot to appologize...
I'll try not to use it again.
Sorry

Peace out

-Toast

:P


None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 01:39 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

Sorry for triple posting - I'm done with the 3D engine.
Should I make a AS thread about it or let someone else better than me.


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 01:45 PM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

At 7/1/05 01:39 PM, -Toast- wrote: Sorry for triple posting - I'm done with the 3D engine.
Should I make a AS thread about it or let someone else better than me.

I don't think that's a true 3D engine. I'd recommend letting someone else like JafitMan takes it, if he feels inclined (http://jafitman.8bit.co.uk/projects/jetlag_gfx.html)

- - Flash - Music - Images - -

BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 02:04 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

You can call it a "fake" 3D engine if you want.
I think you cant make a real 3D engine in flash since it is a 2d program.


None

Nemo

Reply To Post Reply & Quote

Posted at: 7/1/05 02:09 PM

Nemo LIGHT LEVEL 34

Sign-Up: 06/13/03

Posts: 1,895

At 7/1/05 02:04 PM, -Toast- wrote: You can call it a "fake" 3D engine if you want.
I think you cant make a real 3D engine in flash since it is a 2d program.

You can make 3D stuff in Flash, it just takes a lot of programming. It has to take three dimensional data like distance and size, then convert it to two dimensional pictures.


None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/1/05 02:31 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,532

At 7/1/05 01:39 PM, -Toast- wrote: Sorry for triple posting - I'm done with the 3D engine.
Should I make a AS thread about it or let someone else better than me.

No offence, but that kinda sucked.

One that I made, not completely done (only left right up and down movement) but still pretty good I think because speed is relative to the size, which is how it should be if you are going for realism.

The code (place on any MC):

onClipEvent (load) {
_x = random(550);
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe == 4) {
_x -= speed;
} else {
gotoAndPlay(4);
}
}
if (Key.isDown(Key.RIGHT)) {
if (_currentframe == 3) {
_x += speed;
} else {
gotoAndPlay(3);
}
}
if (Key.isDown(Key.UP)) {
if (this.hitTest(_root.wall)) {
} else {
if (_currentframe == 1) {
_y -= speed;
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
} else {
gotoAndPlay(1);
}
}
}
if (Key.isDown(Key.DOWN)) {
if (_currentframe == 2) {
_y += speed;
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
} else {
gotoAndPlay(2);
}
}
if (!Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
if (_currentframe == 5) {
} else {
gotoAndPlay(5);
}
}
}

PS, -toast-, you staeled the '--' idea from me, I know it! If you love me, just declare it rather than trying to stalk me like this.

:P


None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 02:39 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

At 7/1/05 02:31 PM, -liam- wrote:
At 7/1/05 01:39 PM, -Toast- wrote: Sorry for triple posting - I'm done with the 3D engine.
Should I make a AS thread about it or let someone else better than me.
No offence, but that kinda sucked.

???
Mine looks exactly like yours!
By the way,it was just a test made in one hour,I had no idea about 3D before experimenting it.


One that I made, not completely done (only left right up and down movement) but still pretty good I think because speed is relative to the size, which is how it should be if you are going for realism.

If you didn't notice,in mine the speed is related to the size too!


The code (place on any MC):

onClipEvent (load) {
_x = random(550);
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe == 4) {
_x -= speed;
} else {
gotoAndPlay(4);
}
}
if (Key.isDown(Key.RIGHT)) {
if (_currentframe == 3) {
_x += speed;
} else {
gotoAndPlay(3);
}
}
if (Key.isDown(Key.UP)) {
if (this.hitTest(_root.wall)) {
} else {
if (_currentframe == 1) {
_y -= speed;
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
} else {
gotoAndPlay(1);
}
}
}
if (Key.isDown(Key.DOWN)) {
if (_currentframe == 2) {
_y += speed;
speed = _yscale/8;
_yscale = _y/3;
_xscale = _yscale/1.1;
} else {
gotoAndPlay(2);
}
}
if (!Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
if (_currentframe == 5) {
} else {
gotoAndPlay(5);
}
}
}

PS, -toast-, you staeled the '--' idea from me, I know it! If you love me, just declare it rather than trying to stalk me like this.

Hahaha..Inglor thought about ~Toast~ and then I changed it to -Toast-
I didn't even remember that you had "--" !


P

>: (

My code is VERY similiar to yours(pwn3d ( : )
Please log to msn.

My code:

onClipEvent(load)
{
z1 =5-this._xscale/150;
z2 =5-this._yscale/150;

}
onClipEvent(enterFrame)
{
_size = _height + _xscale;
if(Key.isDown(Key.DOWN))
{
this._xscale+=z1;
this._yscale+=z2;
this.gotoAndStop(1);
}
if(Key.isDown(Key.UP))
{
this._xscale-=z1;
this._yscale-=z2;
this.gotoAndStop(2);
}
if(Key.isDown(Key.LEFT))
{this.gotoAndStop(1);
this._x-=this._size/5;
}
if(Key.isDown(Key.RIGHT))
{this.gotoAndStop(1);
this._x+=this._size/5;
}
}


None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/1/05 03:02 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,532

At 7/1/05 02:39 PM, -Toast- wrote: By the way,it was just a test made in one hour,I had no idea about 3D before experimenting it.

Same here, I had never tried anything like that before and snapped that up in ten minutes.

If you didn't notice,in mine the speed is related to the size too!

I just noticed, but the MC moves way too fast no matter where he is :P

My code is VERY similiar to yours(pwn3d ( : )

LMAOL, why have I been pwned?

Please log to msn.

I have.


None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 03:10 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

At 7/1/05 03:02 PM, -liam- wrote:
At 7/1/05 02:39 PM, -Toast- wrote: If you didn't notice,in mine the speed is related to the size too!
I just noticed, but the MC moves way too fast no matter where he is :P

Then I'll change the number.


My code is VERY similiar to yours(pwn3d ( : )
LMAOL, why have I been pwned?

Havn't you ever heard of jokes?

Anyway,Jafiteman's code "ownz" all.


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 04:15 PM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

At 7/1/05 03:10 PM, -Toast- wrote: Anyway,Jafitman's code "ownz" all.

Indeed. Both of yours are OK, but for me, a proper 3D engine should allow the player to rotate and view the 'landscape' in any direction. I saw another one on the portal about 6 months ago, which had StrawberryClock in a Go-Kart. I personally wouldn't even know where to start scripting a 3D environment, but I think JafitMan in particular has produced something amazing there; I've yet to see anything quite like it.

- - Flash - Music - Images - -

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 7/1/05 04:23 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,532

At 7/1/05 04:15 PM, Denvish wrote: Indeed.

I agree, Jafitman is a great actionscripter. His 3D shooting game is fantastic too, he has talent.

I was going to try and code something similar to his plane sim the other day, not a full game as his is but just a small thing but I didn't start :P


None

b2da

Reply To Post Reply & Quote

Posted at: 7/1/05 04:23 PM

b2da EVIL LEVEL 02

Sign-Up: 04/09/05

Posts: 206

Whoa, that jafitiman is awesome. i've seen loads of 3d engines, some use triganmotery (sp?) to give the illusion of a 3d world (i think) and some are actually programmed 3d (i think). Anyway here are some other 3d engines i had in my favourites.

http://www.sat1.de/auto/drivers7/game/index.htm
http://www.fastfroots.de/
http://www.geocities.com/flash4food/Untitled-1.html
http://www.geocities.com/flash4food/sky_survivor.html
http://www.gotoandplay.it/_articles/2003/07/racing_engine.php
http://www.gotoandplay.it/_articles/2003/07/mario_kart.php

there are more 3d engines i could show you but i don't wanna bore you.


None

T-H

Reply To Post Reply & Quote

Posted at: 7/1/05 04:48 PM

T-H LIGHT LEVEL 39

Sign-Up: 01/07/04

Posts: 4,893

At 7/1/05 04:15 PM, Denvish wrote: I saw another one on the portal about 6 months ago, which had StrawberryClock in a Go-Kart.

I've been sayingfor a while thatJeglag owns all. The NG go cart proto is on the super flash bros website, as is a 3D bunny plane demo.


None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 04:54 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

I've seen a 3D game that got the front page some months ago.Where you have to kill primitive Tom Fulp creatures.I don't manage to find it though.
I'm having problems with the 3D background.
If anyone who is good at 3D reads my post,please give me your msn/AIM,I need help!
(It's always easier to talk on an instant messanger,isn't it?)


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 05:02 PM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

AS: Load External Data/Cross-Domain

If anybody wants to do a loadVars topic, go for it. My threads tend to be more 'examples' than 'theory behind the code', so I think that it would do no harm to have someone like Inglor or Geoff (or whoever) tackle the subject from a different angle

- - Flash - Music - Images - -

BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 7/1/05 05:09 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,916

I don't know why my 3D code doesn't work...

The code for the hero:

onClipEvent(load)
{
z1 =5-this._xscale/250;
z2 =5-this._yscale/250;

}
onClipEvent(enterFrame)
{
_size = _height + _xscale;
if(Key.isDown(Key.DOWN))
{
this._xscale+=z1;
this._yscale+=z2;
this.gotoAndStop(1);
}
if(Key.isDown(Key.UP))
{
this._xscale-=z1;
this._yscale-=z2;
this.gotoAndStop(2);
}
if(Key.isDown(Key.LEFT))
{this.gotoAndStop(1);
_root.house._x+=this._size/5;
}
if(Key.isDown(Key.RIGHT))
{this.gotoAndStop(1);
_root.house._x-=this._size/5;
}
if(this._size<60 && this.hitTest(_root.house) && Key.isDown(Key.UP))
{
this._xscale+=z1;
this._yscale+=z2;
}
if(this._size<30 && Key.isDown(Key.UP))
{
this._xscale+=z1;
this._yscale+=z2;
}
if(this.hitTest(_root.house._y,_root.house._x,true) && this._size<59 && Key.isDown(Key.LEFT) or this.hitTest(_root.house._y,_root.house._x,true) && this._size<59 && Key.isDown(Key.RIGHT))
{
this._xscale+=z1;
this._yscale+=z2;
}
}

Code for the background:

onClipEvent(enterFrame)
{
if(this._x>=400)
{
this._x=-827.5;
}

if(this._x<=827.6)
{
this._x=400;
}
}


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/1/05 05:19 PM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

At 7/1/05 05:09 PM, -Toast- wrote: I don't know why my 3D code doesn't work...

Please, take the 3D stuff to a new thread. It doesn't belong here.

- - Flash - Music - Images - -

BBS Signature

None

Inglor

Reply To Post Reply & Quote

Posted at: 7/2/05 07:32 AM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

AS: Modular Programming

OOP is generally better, but Modular programming is still very useful to know/use alot of times, and A LOT easier to learn ;)


None

Inglor

Reply To Post Reply & Quote

Posted at: 7/2/05 07:35 AM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

At 7/1/05 11:03 AM, Grouchy-Grandpa wrote: How about a AS: RPG? Lol, I don't know, it might be hard to explain a whole RPG in one thread.

you got AS: Movement, all you need us to make really is an AS: Inventory 1 (for simple) and AS: Inventory 2 (for weight based)

anyone?

(I might make 2 myself)


None

Inglor

Reply To Post Reply & Quote

Posted at: 7/2/05 08:29 AM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

At 7/1/05 11:16 AM, Grouchy-Grandpa wrote: Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?

credit goes to Schorhr for the idea, I think it was a wise move :P regs deserve not to have the quotas since we don't spam (ususally) :P (at least I think so, that's what aps accounts are all about, ( know I'm risking a ban, but I think everyone agrees that I ain't doing something wrong)


None

Rystic

Reply To Post Reply & Quote

Posted at: 7/2/05 01:03 PM

Rystic LIGHT LEVEL 50

Sign-Up: 03/09/02

Posts: 956

At 6/10/05 01:07 PM, -Toast- wrote:
At 6/8/05 05:34 PM, Denvish wrote: AS: Platformer (etchandsketchdesigns)
It looks like a level one who wanted to be popular in Newgrounds.He copied Rystic's code and he didn't even know that to test a movie,you need to press control+Enter.He said Alt + Enter!

At 6/8/05 07:13 PM, SHITTYFLASHMAN wrote: Try to make a quick tutorial explaining physics.
I made one,read the updated list.
AS:Physics and gravity

At 6/8/05 05:45 PM, Rantzien wrote: Oh, and you should include Rystic's Jumping Enginge.
Well,that guy copied Rystic's code.

PS:Denvish,it isn't "AS:Pong physics" but "AS:Physics and gravity"<33

Thank you for alerting me to this theft! I'm gonna speak to Wade as soon as possible to see iif he can remove that topic.


None

Inglor

Reply To Post Reply & Quote

Posted at: 7/2/05 03:34 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948


None

Denvish

Reply To Post Reply & Quote

Posted at: 7/2/05 03:55 PM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,236

At 7/2/05 08:29 AM, Inglor wrote:
At 7/1/05 11:16 AM, Grouchy-Grandpa wrote: Ha ha! Dark-Toaster's (now -Toast-) anti post limit account! Sort of like inglor's right?
credit goes to Schorhr for the idea, I think it was a wise move :P regs deserve not to have the quotas since we don't spam (ususally) :P (at least I think so, that's what aps accounts are all about, ( know I'm risking a ban, but I think everyone agrees that I ain't doing something wrong)

No, I probably wouldn't ban an aps account unless it was being used for blatant abuse. I'd just rather not see them used.

- - Flash - Music - Images - -

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 01:47 AM

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