A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: My game get slower and slower

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    21

    My game get slower and slower

    My game gets slower and slower.
    I can't find out why it’s slow down after every level.

    Is there any kind person who can just look inside my game code.

    The url is:
    http://www.bamse.net/spel/preload_prisma.swf

    I also attach the fla

    Game info.
    The user shall place items (mirrors) on the board to make the laser reach “the endlamp”
    Last edited by swedart; 01-20-2005 at 04:11 AM.

  2. #2
    Senior Member UnknownGuy's Avatar
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    1,361
    Even though I haven't looked, it looks like your not using local variable while you can, thus making the memory more and more each level. If you don't use locals atleast delete variables as you go, or it gets bogged down.

  3. #3
    Junior Member
    Join Date
    Sep 2001
    Posts
    21

    answer

    Ok, can you explain how I delete a variable when a new level is reach?
    I mean a variable outside a scope(not local).

    delete variableName;

    is that correct?
    Last edited by swedart; 01-20-2005 at 04:17 AM.

  4. #4
    Senior Member UnknownGuy's Avatar
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    1,361
    Yeah, just use delete variable or whatever .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center