Turn to previous page of a book using boolean

Hi there, I’m trying to make a giant 3D book where you can turn the pages back and forth. The pages were animated alembic from Blender. As a beginner, above is my solution to Press G (Interact InputAction) to turn to the next page. The problem is I can’t figure out what the boolean would be for the pages to turn backwards (eg. if the player is at page 3, press F to Play page 3 in reverse). Any ideas would be much appreciated!

Enums and integer are much better solution in this case

Hi, can you explain the steps on how that method can be carried out? Sorry I’m a noob in unreal :frowning:

instead of bool use an integer to count which page it’s currently at. each time u go higher add 1 to the int and each time u go back subtract one.
Annotation 2021-08-22 191109

1 Like