google-code-export / pushbuttonengine

Automatically exported from code.google.com/p/pushbuttonengine
0 stars 0 forks source link

Add mouseEnabled function/properties to sprites & default to false on scene layers #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Two suggested fixes to assist mouse control listed here:
http://pushbuttonengine.com/forum/viewtopic.php?f=5&t=741

1. in BitmapRenderer.as - add mouseEnabled getter/setter to selectively
stop mouse interaction on individual sprites (eg background, HUD background).

2. in DisplayObjectSceneLayer.as - set mouseEnabled to false on the
sceneLayer - otherwise it picks up all mouse interaction and sprites on
lower layers don't get a look-in.

Original issue reported on code.google.com by SharonHa...@gmail.com on 28 Mar 2010 at 9:37

GoogleCodeExporter commented 9 years ago
Fixed in http://pushbuttonengine.com/forum/viewtopic.php?f=5&t=741#p4385

Original comment by ben.garney on 8 Apr 2010 at 9:26