I made a SpaceButton BP that have an image in it, the image will change when i press the space button which is for jumping. Will use this BP in the tutorial level of my game. So how can i achieve this? I can use dispatchers, casting directly into the ButtonBP and change it in the character blueprint but i dont want these kind of codes because it will take so much space in the character bp. Can i achieve this any easier way? Like can i acces is input being pressed from another blueprint without doing anything in the character bp.
So you’re ok with constantly checking if the player has pressed a button inside the widget BP but not ok with casting to an event that’s inside the widget BP from the player BP? The easiest and most efficient way would be just casting to an event of the widget BP on user input.
If you’re having trouble organizing the player BP, consider optimizing your code and using functions & custom events more often.
Hope this helps!
1 Like