Skip to main content
Participant
April 3, 2014
Question

Help making a Game with AS3

  • April 3, 2014
  • 2 replies
  • 468 views

Hey Guys (and Gals)

I’m hoping one of you can help me out with a game I am making in flash.
I’ve been following through this tutorial online (http://as3gametuts.com/2011/11/11/platformer-1/) , and it seems to have missed some fundamental parts that I desperately need, and I am really struggling to work out how to do it.. I’ve vigorously Googled, but to no avail..

Basically, I need to animate the enemy sprite, but whenever I add any kind of animation to the symbol, it becomes non-collidable; the player just passes right through it!

I also need to work out a way to remove enemy sprites from the previous level, as they seem to be passing forward to the next level, and adding a ‘removeself’ function doesn’t seem to do anything. I then need to add a new, separate list of enemies for the next level..

I want to point out that I am EXTREMELY novice at flash (and coding in general), so if you could dumb-down your answers that would be really helpful.


Here is the source code: https://app.box.com/s/d6oibaw63w12e2kvcmsx

Thanks in advance!

This topic has been closed for replies.

2 replies

Inspiring
April 4, 2014

What do you mean by animating enemy? If you are trying to add some animation to it on the main timeline - perhaps something what Amy sensed happens. The thing is that manually created animations on timeline sometimes are very difficult to fit into conventional AS3 functionality.

I suggest you try to animate enemy on its own timeline (not op the main timeline). I guess programmatic animation is too much to attempt for your level.

Amy Blankenship
Legend
April 4, 2014

Nobody's going to download your source code, for a lot of reasons. I would suspect that the reason you're having problems is that you're adding listeners or otherwise referencing something that exists in frame 1 of the animation, but that thing no longer exists at the time of the collision.