Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsI'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
Shouldn't they both be the same stuff, just one has more options then the other?
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.
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.
This is gonna sound crazy, but maybe if you restart the project in AS2...
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
...
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
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
Because flash 8 is so awesome and Adobe is an evil jewish company that eats children.
Go macromedia!
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
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.
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
Perpetually looking for time to return to the arts.
I use AS3. I am just learning though but I still use AS3. I think it's a lot better then AS2
alrighty, thanks for the tips guys (keys.as and that flash gaming book). I may be back for more!
Specifically this one might interest you: Tutorial: Using Flash CS3 and Actionscript 3 to create Atari 7800 Asteroids
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
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
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.
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".
Fact: Tom Fulp still uses AS2.0
Perpetually looking for time to return to the arts.
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/
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
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
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 :)
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.
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 :)