Forum Topic: Why does no one use AS3!?!?!?!!!

(504 views • 26 replies)

This topic is 1 page long.

<< < > >>
Mad as Hell

Ondema

Reply To Post Reply & Quote

Posted at: 11/2/09 10:56 PM

Ondema DARK LEVEL 12

Sign-Up: 11/19/03

Posts: 7

I'm a student trying to build asteroids for a flash assignment. I was only ever introduced to and started to use flash with AS3. 98% of tutorials out there are as2 and flash 6. Those are probably the same thing aren't they.

Anyway I'm trying to build asteroids with a no timeline code. I'm building it with a nice document and object class system with a main document class and then a ship object class, a rocks object class and a laser object class.

I'm trying to find tutorials that deal with the ship movement, creating the dynamic rocks and lasers in as3 and have failed to find any. Can any of you guide me towards "modern" tutorials for what I'm trying to achieve?

I have already tried programming the game all on my own and it half ass functions. The ship moves and what not but I have a disgusting keyDownHandler with a 'switch' 'case' function for the movement. Rather than explain how that works out, basically no one will ever want keyboard controls like that.

For my asteroids I have hardcoded 4 asteroids to spawn anywhere along the four edges of the stage (obviously that's not the proper way to do it)

And for my laser, so far I've only been able to achieve one laser to generate and can't make it follow the rotation of the ship. It fires down to the right.

So I have an idea of what I'm doing but I'd love some AS3 tuts/code to help meeeeeee


Questioning

DrClay

Reply To Post Reply & Quote

Posted at: 11/2/09 10:57 PM

DrClay FAB LEVEL 25

Sign-Up: 08/09/05

Posts: 4,931

Shouldn't they both be the same stuff, just one has more options then the other?

I'm Logical
"Stick Slayer Movies Are Just Stick Movies" - Ben Spurgin

BBS Signature

None

Montycarlo

Reply To Post Reply & Quote

Posted at: 11/2/09 11:09 PM

Montycarlo LIGHT LEVEL 19

Sign-Up: 03/14/05

Posts: 726

The math is exactly the same in AS2 as it is in AS3. You should be able to easily 'translate' math algorithms from AS2 -> AS3.

Most of the tutorials you may find on the net are in Actionscript 2, plainly for the reason that it has been out for a much longer period and is still the perferred option for novice users.


None

Shmossy

Reply To Post Reply & Quote

Posted at: 11/3/09 03:37 AM

Shmossy EVIL LEVEL 10

Sign-Up: 05/05/07

Posts: 747

It's because I can't even find a tutorial on the most basic code in AS3.
All the AS3 tutorials out there (not many) are focused on people that already have an intermediate knowledge of programming.


None

Shadow181

Reply To Post Reply & Quote

Posted at: 11/3/09 03:44 AM

Shadow181 LIGHT LEVEL 08

Sign-Up: 11/03/04

Posts: 211

This is gonna sound crazy, but maybe if you restart the project in AS2...

BBS Signature

None

the1manwiththeplan

Reply To Post Reply & Quote

Posted at: 11/3/09 03:56 AM

the1manwiththeplan LIGHT LEVEL 14

Sign-Up: 06/10/08

Posts: 355

At 11/3/09 03:44 AM, Shadow181 wrote: This is gonna sound crazy, but maybe if you restart the project in AS2...

Your right it does sound crazy

I went outside once the graphics were awesome but the gameplay was shit

BBS Signature

None

hdxmike

Reply To Post Reply & Quote

Posted at: 11/3/09 04:20 AM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,761

At 11/3/09 03:56 AM, the1manwiththeplan wrote:
At 11/3/09 03:44 AM, Shadow181 wrote: This is gonna sound crazy, but maybe if you restart the project in AS2...
Your right it does sound crazy

Very.

As for your keys their is a great Keys.as file i found that helped me make my own , google it.
The math is near identical , most of the changes are tiny syntax changes and the difference in the way you go about writing it , they wouldnt change the math , i dont know much math , i can make an object face another or the mouse in AS3 but thats basic trig, i would say look up Vexagon but hes not much of a class writer.

Make the bullets angular velocity face the same way as the ship or something

But whatever you do dont go back to AS2 , you should be proud you left it behind

OOP AS3 || Flash 8,CS3,CS4 || *sigh* || The new forum on the block : FLASH SEED !

BBS Signature

None

hdxmike

Reply To Post Reply & Quote

Posted at: 11/3/09 04:21 AM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,761

At 11/3/09 03:56 AM, the1manwiththeplan wrote:
At 11/3/09 03:44 AM, Shadow181 wrote: This is gonna sound crazy, but maybe if you restart the project in AS2...
Your right it does sound crazy

Very.

As for your keys their is a great Keys.as file i found that helped me make my own , google it.
The math is near identical , most of the changes are tiny syntax changes and the difference in the way you go about writing it , they wouldnt change the math , i dont know much math , i can make an object face another or the mouse in AS3 but thats basic trig, i would say look up Vexagon but hes not much of a class writer.

Make the bullets angular velocity face the same way as the ship or something

But whatever you do dont go back to AS2 , you should be proud you left it behind

OOP AS3 || Flash 8,CS3,CS4 || *sigh* || The new forum on the block : FLASH SEED !

BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 11/3/09 04:21 AM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,921

Because flash 8 is so awesome and Adobe is an evil jewish company that eats children.

Go macromedia!

None

kizza0

Reply To Post Reply & Quote

Posted at: 11/3/09 05:54 AM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

DUDE
The book "flash game programing university" has a chaptor on makign an asteroids game with everything you mentioned plus extras such as shields. it also covers as3 form the ground up in plat former games/ puzzle games and heaps more.

BOOM HEADSHOT

BBS Signature

None

henke37

Reply To Post Reply & Quote

Posted at: 11/3/09 06:21 AM

henke37 NEUTRAL LEVEL 23

Sign-Up: 09/10/04

Posts: 3,615

The answer is simple:
Because copypaste tutorials is harder when there is more than one file.

Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.


None

Johnny

Reply To Post Reply & Quote

Posted at: 11/3/09 07:49 AM

Johnny DARK LEVEL 21

Sign-Up: 04/17/04

Posts: 4,449

At 11/3/09 05:54 AM, kizza0 wrote: DUDE
The book "flash game programing university" has a chaptor on makign an asteroids game with everything you mentioned plus extras such as shields. it also covers as3 form the ground up in plat former games/ puzzle games and heaps more.

(Written by Gary Rosenzweig)

Gary also has a site with great tutorials from beginner to advanced. Almost all in AS3.0

Flash Game University Website

All sites currently down. Deal with it. <3

BBS Signature

None

fallensoul289

Reply To Post Reply & Quote

Posted at: 11/3/09 08:07 AM

fallensoul289 EVIL LEVEL 17

Sign-Up: 09/11/07

Posts: 1,080

I use AS3. I am just learning though but I still use AS3. I think it's a lot better then AS2

|Add me on XBL| My flash's|Thanks to SupraAddict for the awesome sig!

BBS Signature

None

Ondema

Reply To Post Reply & Quote

Posted at: 11/3/09 01:25 PM

Ondema DARK LEVEL 12

Sign-Up: 11/19/03

Posts: 7

alrighty, thanks for the tips guys (keys.as and that flash gaming book). I may be back for more!


None

LeechmasterB

Reply To Post Reply & Quote

Posted at: 11/3/09 02:40 PM

LeechmasterB EVIL LEVEL 16

Sign-Up: 04/01/05

Posts: 937

This guy has some great tutorials that might help you!

8Bitrocket.com

also have a look at
emanueleferonato.com/


None

LeechmasterB

Reply To Post Reply & Quote

Posted at: 11/3/09 02:46 PM

LeechmasterB EVIL LEVEL 16

Sign-Up: 04/01/05

Posts: 937


Mad as Hell

hdxmike

Reply To Post Reply & Quote

Posted at: 11/3/09 03:20 PM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,761

At 11/3/09 02:46 PM, LeechmasterB wrote: Specifically this one might interest you: Tutorial: Using Flash CS3 and Actionscript 3 to create Atari 7800 Asteroids

Not specific enough !

OOP AS3 || Flash 8,CS3,CS4 || *sigh* || The new forum on the block : FLASH SEED !

BBS Signature

None

zaphire77

Reply To Post Reply & Quote

Posted at: 11/4/09 01:54 PM

zaphire77 LIGHT LEVEL 05

Sign-Up: 04/15/09

Posts: 3

I think you'll find that most people use AS2 because nobody ever used flash much when AS1 was around and by the time AS3 came out everybody had learnt AS2 and found it easier to just stick with AS2


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 11/4/09 02:27 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,395

At 11/4/09 01:54 PM, zaphire77 wrote: I think you'll find that most people use AS2 because nobody ever used flash much when AS1 was around and by the time AS3 came out everybody had learnt AS2 and found it easier to just stick with AS2

Why, no, most people use AS3. You'll be horrified to find that incompetent wannabe kids are not the majority in the scene.
There's also a difference between 'learning' as in memorizing scripts you find in 'tutorials', and learning as in accumulating knowledge so things like AS3 would come easily once you're accustomed to a few changes.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

zuperxtreme

Reply To Post Reply & Quote

Posted at: 11/4/09 03:31 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,599

I think it's because the majority of idiots use AS2(Not correlative, I'm not judging :p) so they post and make the majority of Flash-related questions, hence more "support".


None

Johnny

Reply To Post Reply & Quote

Posted at: 11/4/09 07:49 PM

Johnny DARK LEVEL 21

Sign-Up: 04/17/04

Posts: 4,449

Fact: Tom Fulp still uses AS2.0

All sites currently down. Deal with it. <3

BBS Signature

None

C-Doodlez-Man

Reply To Post Reply & Quote

Posted at: 11/4/09 09:09 PM

C-Doodlez-Man NEUTRAL LEVEL 10

Sign-Up: 04/09/06

Posts: 972

cause everyone has been using as2 for ever? not an epic long time but i stil use as2 just cause I know it better

"Where is pancakes house?"

BBS Signature

None

Yambanshee

Reply To Post Reply & Quote

Posted at: 11/4/09 11:01 PM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,585

ok, we get the spam topics about everyone still using AS2 but a lot are using AS3 aswell.
firstly here is the AS3:Main
secondly as mentioned above, the maths is similer so you might just want to learn some oop for your project in AS3

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

hdxmike

Reply To Post Reply & Quote

Posted at: 11/5/09 06:04 AM

hdxmike LIGHT LEVEL 09

Sign-Up: 09/11/09

Posts: 1,761

At 11/4/09 07:49 PM, Johnny wrote: Fact: Tom Fulp still uses AS2.0

Yeah i saw that on reddit but when i think about it , flash game wise he hasnt really done anything that great since the release of AS3 or even AS2.

I dont blame him , he spends more time on XNA now so he probably cant be fucked to undergo a transition at the same time

OOP AS3 || Flash 8,CS3,CS4 || *sigh* || The new forum on the block : FLASH SEED !

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 11/5/09 11:36 AM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,533

At 11/2/09 11:09 PM, Montycarlo wrote: The math is exactly the same in AS2 as it is in AS3. You should be able to easily 'translate' math algorithms from AS2 -> AS3.

This.

It should not matter what language an example is written in, it's only to give you an idea of how to do it yourself. With AS2->AS3 the differences aren't that major, so it is even less of a 'problem'. You are more likely to find a helpful guide based on C++, Java or Python to do with this specific subject, so I suggest you branch out a bit more.


None

JKR

Reply To Post Reply & Quote

Posted at: 11/5/09 11:46 AM

JKR LIGHT LEVEL 24

Sign-Up: 01/01/05

Posts: 546

AS3 is a LOT better in the long run, but I hate it like crazy. I don't enjoy programming at all, and AS3 is much more "programming" than AS2 ever was.

Sigh... But I must get with the times and move forward.

One day.

Click now to check it out and join in the fun!

BBS Signature

None

liaaaam

Reply To Post Reply & Quote

Posted at: 11/5/09 12:01 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,533

At 11/5/09 06:04 AM, hdxmike wrote: I dont blame him , he spends more time on XNA now so he probably cant be fucked to undergo a transition at the same time

wrongwrongwrongwrongwrongwrongwrongwrong wrongwrongwrong

Castle Crashers was not written using XNA, it is C++.. and that isn't why he doesn't use AS3, he's just old fashioned (he still doesn't use hitTest >:p)


All times are Eastern Standard Time (GMT -5) | Current Time: 08:30 PM

<< Back

This topic is 1 page long.

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