Code doesn't delay player input

Hi, I followed the Starting the Game part in the ToonTanks section and the code doesn’t work for me



I followed all the directions, and included TimerManager.h but for whatever reason, whenever I played the level there is no input delay for the player tank.

Are you sure the tank is using your player controller? Could you show the player controller code?


Here is the Player controller cpp file.

Here is the Player controller h file.

I also included the code for the tank cpp and h files respectively to check.


And my other question regarding whether the tank is using this controller?

It’s using this controller

In that case would you mind sending me your project using the following link?

https://gdev.tv/projectupload

Please use File > Zip Project within Unreal as this will ensure only required files are zipped up and things like the Binaries are excluded.

I’ve sent the zip file to you.

It is not. It’s using BP_ToonTanksPlayerController but that inherits from PlayerController not this class

Change the parent class to this class.

Thank you, the delay finally worked.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms