16
Technical forum / Re: IsKeyDown freezes animation
« on: June 27, 2011, 06:51:52 AM »
Declare a global variable that indicates that the animation has started playing.
Forum rules - please read before posting, it can save you a lot of time.
....
var inventoryBgLayer = Scene.GetNode("inventory background");
inventoryBgLayer.Active = true;
...
BTW in your screenshot it seems that you have achieved the blurring effect. Is this image modified so you can show us what you need to do?The image is just an example (photoshop-based image) of what we'd like to achieve.
Well the method I mentioned is ok for our project but if you find a solution that gives a nice blurring effect we might use it too
There's no blurring possible directly. All you could do is simply fade into a pre-blurred-version of you background ( overlay as a sprite for example). But you cannot blur the screen in real-time.I was afraid there is no simpler way.
We try to do something similar. You haven't mentioned this but I assume you use a window for your inventory. You can create an image with the dimensions of your inventory window (which must match the dimensions of your scene). Set the colour as black (or any colour you wish) and make it transparent (you can achieve this with an image application, we use GIMP). Then you can set it as background of your window and when you open it its transparency might give you the effect you need.Yes, we use a window. However, this doesn't blur the background, does it? It just mixes the background with a transparent color (black color for example). So I get traditional alpha-blended color.