Skip to content

Rigid plays move sound even when it failed to move #1118

@caogtaa

Description

@caogtaa

Rigid plays move sound even when it failed to move.
A game level to reproduce the issue:
Input RIGHT, the Crate move sound is played, which is not expected.

title Test Level
author caogtaa

========
OBJECTS
========
Background 
black

Player P 
black orange white blue
.000.
.111.
22222
.333.
.3.3.

Wall #
brown darkbrown
00010
11111
01000
11111
00010

Crate C
yellow

=======
LEGEND
=======
. = Background

=======
SOUNDS
=======
C move 142315

================
COLLISIONLAYERS
================
Background
P,C,Wall

======
RULES     
======     
rigid up [ horizontal P | C ] -> [ horizontal P | horizontal C]
+ rigid [ moving C | C ] -> [ moving C | moving C]

==============
WINCONDITIONS
==============

=======     
LEVELS
=======
.....
..CC#
..CC.
..P..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions