# A couple semi-basic programming questions (AS2)

**URL:** <https://forum.kirupa.com/t/a-couple-semi-basic-programming-questions-as2/267451>\
**Category:** programming\
**Created:** [August 1, 2008, 8:15am UTC](https://forum.kirupa.com/t/a-couple-semi-basic-programming-questions-as2/267451 "2008-08-01T08:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bolshoi333](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bolshoi333](https://forum.kirupa.com/u/Bolshoi333)\
**Post date:** [August 1, 2008, 8:15am UTC](https://forum.kirupa.com/t/a-couple-semi-basic-programming-questions-as2/267451/1 "2008-08-01T08:15:39Z")

</div>

Hey everyone, wassup!

I’m currently working on a not-extremely-complicated game project, and I just have some pretty basic questions about what code I need and if it exists. So instead of making like 3 different topics about it, I’m putting them all in here. What I need to do is the following:

1. Count the number of frames that have passed. (Being used for attack animations)
2. Identify the name of an object that has been hit using hitTest (Used for multiplayer & multicharacter combat)
3. Putting multiple platforms in the same instance (For…well…levels with multiple platforms)

There are going to be plenty of characters and plenty of attacks, so finding a simple way to do these would eliminate a lot of headache. I’m pretty sure there’s a simple command to do both of these, I just don’t know what they are. Otherwise, any advice you can give would suffice.

Any help is greatly appreciated. Thanks in advance 😃

Bolshoi
