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

Game bug, speeding up sprite

New Here ,
Jul 15, 2014 Jul 15, 2014

I've been learning flash for about 2 weeks now and I am currently making a game.  I have created wall collision and detection for the walls and enemies and I just patched the last few bugs of the core program so I can start adding gameplay elements but there is one really important bug that I have no idea on how to fix everytime you lose or win the and restart, the player sprite speeds up and it multiplies its speed every time it happens. anybody have any ideas on why this may be?

too much source code so here's the fla:

http://www.mediafire.com/download/dbgtlkhd6pvq4w6/collisionwallgame.fla

TOPICS
ActionScript
215
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
Community Expert ,
Jul 15, 2014 Jul 15, 2014

that usually occurs because a setInterval was used and not cleared before another setInterval was used.

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
New Here ,
Jul 15, 2014 Jul 15, 2014

I have not used any setintervals as of yet.

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
Community Expert ,
Jul 15, 2014 Jul 15, 2014

there's a small chance setTimeout would cause a similar problem.

if that's not used, someone will need to download your file and troubleshoot it for you.

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
New Here ,
Jul 15, 2014 Jul 15, 2014
LATEST

yes it's not that either. I would like somebody to troubleshoot for me which is why put in the fla with the whole library and such

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