Be a Supporter!

Why does no one use AS3!?!?!?!!!

  • 812 Views
  • 26 Replies
New Topic Respond to this Topic
Ondema
Ondema
  • Member since: Nov. 19, 2003
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Why does no one use AS3!?!?!?!!! 2009-11-02 22:56:03 Reply

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

DrClay
DrClay
  • Member since: Aug. 9, 2005
  • Offline.
Forum Stats
Supporter
Level 26
Gamer
Response to Why does no one use AS3!?!?!?!!! 2009-11-02 22:57:08 Reply

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


TF2 Crew I User Icon Makers Club I Source Filmmaker Crew I
NEWGROUNDS TF2 Server: 192.223.24.28

BBS Signature
Montycarlo
Montycarlo
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-02 23:09:18 Reply

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.


Although practicality beats purity.
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.

Shmossy
Shmossy
  • Member since: May. 5, 2007
  • Offline.
Forum Stats
Member
Level 11
Game Developer
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 03:37:28 Reply

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.


BBS Signature
Shadow181
Shadow181
  • Member since: Nov. 3, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 03:44:13 Reply

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


BBS Signature
the1manwiththeplan
the1manwiththeplan
  • Member since: Jun. 10, 2008
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 03:56:07 Reply

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


...

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 04:20:10 Reply

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


nobody

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 04:21:28 Reply

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


nobody

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 04:21:51 Reply

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

Go macromedia!

BBS Signature
kizza0
kizza0
  • Member since: Oct. 13, 2007
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 05:54:17 Reply

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
henke37
henke37
  • Member since: Sep. 10, 2004
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 06:21:43 Reply

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.

Johnny
Johnny
  • Member since: Apr. 17, 2004
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 07:49:26 Reply

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


Perpetually looking for time to return to the arts.

BBS Signature
fallensoul289
fallensoul289
  • Member since: Sep. 11, 2007
  • Offline.
Forum Stats
Member
Level 19
Gamer
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 08:07:02 Reply

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
Ondema
Ondema
  • Member since: Nov. 19, 2003
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 13:25:04 Reply

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

LeechmasterB
LeechmasterB
  • Member since: Apr. 1, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 14:40:47 Reply

This guy has some great tutorials that might help you!

8Bitrocket.com

also have a look at
emanueleferonato.com/

LeechmasterB
LeechmasterB
  • Member since: Apr. 1, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 14:46:28 Reply

Specifically this one might interest you: Tutorial: Using Flash CS3 and Actionscript 3 to create Atari 7800 Asteroids

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-03 15:20:53 Reply

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 !


nobody

zaphire77
zaphire77
  • Member since: Apr. 15, 2009
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 13:54:57 Reply

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

GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 14:27:53 Reply

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.


BBS Signature
zuperxtreme
zuperxtreme
  • Member since: Jan. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 15:31:27 Reply

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


BBS Signature
Johnny
Johnny
  • Member since: Apr. 17, 2004
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 19:49:15 Reply

Fact: Tom Fulp still uses AS2.0


Perpetually looking for time to return to the arts.

BBS Signature
C-Doodlez-Man
C-Doodlez-Man
  • Member since: Apr. 9, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 21:09:00 Reply

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


Check out the flaming atom forums! A growing community of youtubers, with interesting discussions and a minecraft server. http://forum.flamingatom.com/index/

BBS Signature
Yambanshee
Yambanshee
  • Member since: Oct. 5, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-04 23:01:54 Reply

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
Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-05 06:04:57 Reply

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


nobody

liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-05 11:36:16 Reply

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.


Sup, bitches :)

BBS Signature
JKR
JKR
  • Member since: Jan. 1, 2005
  • Offline.
Forum Stats
Member
Level 29
Animator
Response to Why does no one use AS3!?!?!?!!! 2009-11-05 11:46:58 Reply

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.


BBS Signature
liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to Why does no one use AS3!?!?!?!!! 2009-11-05 12:01:54 Reply

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)


Sup, bitches :)

BBS Signature