Local Co-op Series (Pt 1: player anim)

Pt8&9: Separate input to interact inventory



Use gamepad if menu opens


In PlayerBase BP
Add variable
image.png

In input action menu end node Open/Close Menu, extend the graph by branch
Set User Focus is to lock the focus on the keyboard control
image.png

Go to Player 2 BP
tick using Gamepad
image.png

Go to Inventory Icon widget
Untick is focusable on both Invenotry UI layer and Item Button layers:
image.png

In Player HUD W, add the follow node in Event construct:
image.png

Go to Project setting
Set Render focus rule as Always
image.png
Add actionmapping for gamepad:
image.png

Go to PlayerBase BP,
add variable
image.png
Add follow after branch true
image.png
image.png

Use mouse and keyboard for inventory menu control:


In Player Base BP
Add 2 functions:
image.png
image.png
Go to Jump Input in event graph:
image.png


Modify gamepad on inventory menu in Pt9 (to set clamp to restrict the controller go beyond the inventory size menu):



In Player BP, menu nav left/right nodes
image.png
Set up and down navigation too:
image.png
Duplciate nodes form left and right, except modify beginning selected item index node
image.png


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.