Local timescale for zombies
This commit is contained in:
parent
6a96d34c26
commit
8d326e47a7
3 changed files with 23 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ public partial class ZombieMover : Node
|
|||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
_zombie.Position -= _zombie.Transform.X * _speed * (float)delta * Utility.TileWidth / 4.0f;
|
||||
_zombie.Position -= _zombie.Transform.X * _speed * (float)delta * Utility.TileWidth * GetParent<RuntimeZombieData>().LocalTimescale;
|
||||
}
|
||||
|
||||
public void SetSpeed(float speed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue