Made the slow berry work
All of the berries work now which is nice. I need to add jumping tho and that sounds annoying.
This commit is contained in:
1 parent
388c838d25
commit
870ede5eab
3 files changed
+13
-1
No files matched your search
+3
-1
@@ -41,8 +41,10 @@ public partial class Player : Node2D {
|
||||
|
||||
if (Globals.ActiveEffect == "none") {
|
||||
Globals.MovementSpeed = Globals.DefaultMovementSpeed;
|
||||
} if (Globals.ActiveEffect == "ultra") {
|
||||
} else if (Globals.ActiveEffect == "ultra") {
|
||||
Globals.MovementSpeed = Globals.DefaultMovementSpeed * 2f;
|
||||
} else if (Globals.ActiveEffect == "slow") {
|
||||
Globals.MovementSpeed = Globals.DefaultMovementSpeed / 2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user