Problem Description
I want the player to destroy a sprite if he touches it, that works, but it also affects all other sprites, so all the sprite that the player touches are destroyed
Attach a Capx
goo.gl/PU2C4M
Description of Capx
Sprite1; Player. Has 8direction behaviour and solid behaviour.
Sprite2; A sprite that has this lign of code in the event sheet; "Sprite1 on collision with Sprite2 -> Sprite 2 Destroy". Has solid behaviour.
Sprite3; A sprite that has no code attached to it, so it shouldn't destroy. Has solid behaviour
Steps to Reproduce Bug
- Step 1 Make three sprites.
- Step 2 Assign the solid behaviour to all three.
- Step 3 Assign any movement behaviour to the first one, he'll be the player (8Direction in this case)
- Step 4 Make this lign of code; "Player on collision with Sprite2 -> Destroy Sprite 2"
Observed Result
Sprite2 is destroyed when touched by the player, but also Sprite3 even if it has no code attached to it.
Expected Result
Sprite2 is destroyed when touched by the player, but Sprite3 isn't destroyed when touched by the player.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Windows 10 version 1709
Construct 2 Version ID
beta r257