Fast stomp implementation

This commit is contained in:
Kevin Poretti 2023-01-12 22:12:37 -05:00
parent b833c63825
commit 5ae5a1fb69
11 changed files with 32 additions and 6 deletions

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/Input/Actions/IA_ToggleFastStomp.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/VFX/Blueprints/BP_AfterImage.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/VFX/Materials/M_AfterImageBase.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -107,6 +107,11 @@ void AGSCharacter::Move(const FInputActionValue& Value)
void AGSCharacter::ChangeGravityDirection(const FInputActionValue& Value) void AGSCharacter::ChangeGravityDirection(const FInputActionValue& Value)
{ {
if(!bCanChangeGravity)
{
return;
}
FVector2D GravityDirection = Value.Get<FVector2D>(); FVector2D GravityDirection = Value.Get<FVector2D>();
FVector NewCharacterUpDirection(0.0f, -GravityDirection.X, -GravityDirection.Y); FVector NewCharacterUpDirection(0.0f, -GravityDirection.X, -GravityDirection.Y);

View File

@ -48,6 +48,9 @@ protected:
/** Called for movement input */ /** Called for movement input */
void Move(const FInputActionValue& Value); void Move(const FInputActionValue& Value);
UPROPERTY(BlueprintReadWrite, Category = "Player Actions Flags")
bool bCanChangeGravity = true;
/** Called when the player changes the gravity direction */ /** Called when the player changes the gravity direction */
void ChangeGravityDirection(const FInputActionValue& Value); void ChangeGravityDirection(const FInputActionValue& Value);