Skip to content

[Bubble Bobble The Revival] Each time press the attack (Space Key), the stage always reset. #6185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jmousy opened this issue Feb 1, 2022 · 1 comment · Fixed by #9447
Closed
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working

Comments

@jmousy
Copy link
Contributor

jmousy commented Feb 1, 2022

Describe the bug

In Bubble Bobble The Revival (By Free Online Games), after starting the game, if you press the attack key (space bar), the screen will scroll with the initializing of stage 1 at the same time as the attack.

Therefore, the game does not progress and stage 1 is reset.

Bubble_Bobble_The_Revival.zip

✔ Adobe Flash Player (Working)

bubble-bobble-afp.mp4

⚠ Ruffle Nightly 2022-01-31 (Not Working)

bubble-bobble-ruffle.mp4

image

Expected behavior

The screen should not come out so the character can shoot the bubbles.

Affected platform

Self-hosted version

Operating system

Windows 10 21H2

Browser

Google Chrome 97

Additional information

No response

@jmousy jmousy added the bug Something isn't working label Feb 1, 2022
@Toad06 Toad06 added the A-avm1 Area: AVM1 (ActionScript 1 & 2) label Feb 1, 2022
@Toad06
Copy link
Member

Toad06 commented Feb 1, 2022

Thanks for the report.

Here is the code that is used when clicking "Play" or pressing the spacebar in the menu:

      this.start_anim_mc.onEnterFrame = function()
      {
         if(this._currentframe == this._totalframes)
         {
            delete this.onEnterFrame;
            this.start_btn.onRelease = function()
            {
               temp.initGame();
            };
            this.onKeyDown = function()
            {
               if(Key.isDown(32))
               {
                  temp.initGame();
               }
            };
            Key.addListener(this);
         }
      };

When the first level starts, this.start_anim_mc.removeMovieClip(); is called and should remove all the properties from start_anim_mc (including the onKeyDown event) but because of #3839 this doesn't work. #5492 fixes that issue but we'll have to check again when this pull request is no longer a draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants