00:00
00:00
Newgrounds Background Image Theme

GoBitz 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,872 Views | 1,493 Replies
New Topic Respond to this Topic

Response to As: Main 2005-07-01 11:07:15


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

Response to As: Main 2005-07-01 11:11:46


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;
}
}

Response to As: Main 2005-07-01 11:16:03


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

Response to As: Main 2005-07-01 11:16:04


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

Response to As: Main 2005-07-01 11:17:28


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

Response to As: Main 2005-07-01 11:19:25


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

Response to As: Main 2005-07-01 12:13:44


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


BBS Signature

Response to As: Main 2005-07-01 12:27:07


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

Peace out

-Toast

:P


BBS Signature

Response to As: Main 2005-07-01 13:39:19


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.


BBS Signature

Response to As: Main 2005-07-01 13:45:14


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

Response to As: Main 2005-07-01 14:04:10


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.


BBS Signature

Response to As: Main 2005-07-01 14:09:15


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.


BBS Signature

Response to As: Main 2005-07-01 14:31:18


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


Sup, bitches :)

BBS Signature

Response to As: Main 2005-07-01 14:39:03


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;
}
}


BBS Signature

Response to As: Main 2005-07-01 15:02:57


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.


Sup, bitches :)

BBS Signature

Response to As: Main 2005-07-01 15:10:43


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.


BBS Signature

Response to As: Main 2005-07-01 16:15:13


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

Response to As: Main 2005-07-01 16:23:20


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


Sup, bitches :)

BBS Signature

Response to As: Main 2005-07-01 16:23:29


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.

Response to As: Main 2005-07-01 16:48:13


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.

Response to As: Main 2005-07-01 16:54:53


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


BBS Signature

Response to As: Main 2005-07-01 17:02:25


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

Response to As: Main 2005-07-01 17:09:08


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;
}
}


BBS Signature

Response to As: Main 2005-07-01 17:19:48


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

Response to As: Main 2005-07-02 07:32:11


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

Response to As: Main 2005-07-02 07:35:09


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)

Response to As: Main 2005-07-02 08:29:41


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)

Response to As: Main 2005-07-02 13:03:04


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.

Response to As: Main 2005-07-02 15:34:44


Response to As: Main 2005-07-02 15:55:34


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