00:00
00:00
Nabella
LOOK ON MY WORKS, YE' MIGHTY, AND DESPAIR!!

Age 23

Tiny Picture Maker

Rural grassy nowhere.

Joined on 9/15/15

Level:
41
Exp Points:
18,401 / 18,660
Exp Rank:
1,185
Vote Power:
8.23 votes
Audio Scouts
3
Art Scouts
10+
Rank:
Pvt. First Class
Global Rank:
2,314
Blams:
777
Saves:
3,047
B/P Bonus:
20%
Whistle:
Bronze
Trophies:
1
Medals:
1,054
Supporter:
3y 5m 9d

Comments

Hey dude, I received your PM (commenting here as my outbox is full - delete this comment if you like). The code looks about right. One thing I can suggest is removing the "depth" variables like "guts" and "skull", as you can replace that with, say, "enemyDepth + 1000" and "enemyDepth + 2000" and it'd be equivalent.

You could also create a new thread in the game dev forum, as that can get more specific replies than if, say, the reg lounge thread or PMs were used directly.

Oh, yeah, you got it, dude. Thanks for your help.

Quick question about the gamedev forum: Would it be better to make a single thread for dumb AS2 questions and a separate thread for each more complex one or just group them all into one thread? Thanks again.

@Nabella Depends on what kind of questions they are. Specific questions would be better off in their own thread, for example if it's related to a game that you're making and cannot be generalized. On the other hand if it's general questions about AS2 then those could all be part of the same thread.

By the way, I assume you've seen the AS:Main thread from 2006-8 or so? There's a lot of good resources over there for learning AS2 even though quite a few links are dead by now.

Okay, I had a feeling that would be the case. I was just asking to be sure.

To answer the second part: Yeah, I have and I get lost pretty easily, haha...it doesn't really click with me until I see it used in examples like this: https://www.youtube.com/watch?v=leDbiA_Dq1o

Or this: https://www.youtube.com/watch?v=cYXH8pTFLVk&list=PLndqfxA_9SWGFv8usSkdLpPurSscN_D1S

And then I apply them to make something small like this:
https://www.newgrounds.com/dump/item/5a4c8ad7972d435f57715aae809067dc
(This is buggy, btw.)

@Nabella Fair enough! Different people learn differently, some prefer videos, others prefer books, others prefer decompiling and trying to interpret others' code themselves, yet others learn from changing things randomly and recompiling until they get the result they want, and seeing why it worked.

As long as it works for you, great! When I was first learning AS2, I used a combination of all the above four methods, although I initially started with doing the last one (tweaking things randomly) a LOT and then decompiling others' code (usually tutorial code) and finally going to videos and then books.

At some point you might want to try going through a book like Learning Actionscript 2.0 (https://stargate.inf.elte.hu/~pepe/Forrai/webprog/szerzoi/flash_as2_learning.pdf) and/or any API documentation (https://homepage.divms.uiowa.edu/~slonnegr/flash/ActionScript2Reference.pdf) and searching for the function or the description of the thing you're trying to do. You needn't power through it if you get confused, but just going through it like light reading would do a lot to get you accustomed to going through it, and as you get comfortable with the more advanced aspects of the language (e.g. through videos), it might become easier to use the documentation directly.

Another thing you could do is learn a more beginner-friendly language like Python 3 (for which there are umpteens of resources) and then try and port whatever concepts you learned to AS2. That might end up being easier, given that a lot of AS2 resources these days are obsolete or not fully maintained.

Man, seriously, I can't thank you enough for your help.

@Nabella glad to help! Also, pay it forward when you can - another way of learning that I didn't mention earlier is to attempt to answer any questions that you can. Even if they're not entirely correct, someone else will likely correct it and you'll be able to easily see and correct any gaps in your knowledge.

It does take a bit of confidence to be able to answer even if you don't know the answer fully, but once you get over that mental barrier, you'll find you're improving much faster, especially since questions that other people ask are likely to be outside of your comfort zone, so answering them would be taking you out of it at the same time.

Given that the flash forward jam has been announced again this year, we may* see an influx of users posting questions on AS2 in the game dev forum. If this is the case, then we'll need all the help we could get ;)

*I say "may" because I've been trying to advertise the game dev forum in connection with the jam, but most people don't really use it at the moment.

LOL, okay, I'll share whatever meager scripting knowledge I have if questions like that appear in the dev forum. I've been told teaching is another form of learning, so maybe this is the time to test that.

I could also share some of my meager Flash knowledge for drawing in the program. Brush settings like 'paint behind' make trimming vectors a lot easier.
https://www.newgrounds.com/dump/item/e2166e792e82d13d2717626b60b43994