top of page
  • Facebook
  • Twitter
  • Instagram
Search

Speed boost & fuel consumption

  • Writer: togaquinn
    togaquinn
  • Sep 6, 2022
  • 1 min read

Today I began implementing a HUD containing the players tank model in a small icon in the top right, I hope to have this linked too which ever of the three tank models the player selects, on top of that I also added the health bar which isn't fully set up as of yet alongside a fuel bar. The idea behind the fuel bar was to have it degrade with no self regeneration whenever the player used a movement speed boost with left shift, the only way to gain fuel back would be through pick ups dropped by enemies.


The problem I'm currently facing is that not many people create 2D games in Unreal engine and normally opt for using unity instead but I wanted to take a crack at it with my small tank game, the code shown below also demonstrates some attempts to backward engineer a mechanic out of the normal sprint function for the 3D base template found on Unreal but so far this has been fruitless.

The issue is linked to the player movement but I don't know how to inherit 2D movement onto an input involving a 2D player character at the moment.


I may leave this mechanic on hold for now and focus on more important tasks like projectile firing and actually getting a working turret on my tank (lol).



 
 
 

Comments


© 2023 by Quinn Burston. Proudly created with Wix.com

bottom of page