Delay movement of ParallaxContainers slightly.

This commit is contained in:
Dean Herbert
2016-12-01 21:45:40 +09:00
parent 2342a17dbc
commit 413138abe5

View File

@ -4,6 +4,7 @@ using osu.Framework.Input;
using OpenTK; using OpenTK;
using osu.Framework; using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics.Transformations;
namespace osu.Game.Graphics.Containers namespace osu.Game.Graphics.Containers
{ {
@ -38,7 +39,7 @@ namespace osu.Game.Graphics.Containers
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();
content.Position = (ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount; content.MoveTo((ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount, 1000, EasingTypes.OutQuint);
content.Scale = new Vector2(1 + ParallaxAmount); content.Scale = new Vector2(1 + ParallaxAmount);
} }
} }