Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help making a Game with AS3

New Here ,
Apr 03, 2014 Apr 03, 2014

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!

TOPICS
ActionScript
431
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 04, 2014 Apr 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 04, 2014 Apr 04, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines