# I want for my second player to have this display

**URL:** <https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 30, 2015, 2:57pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129 "2015-11-30T14:57:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [November 30, 2015, 2:57pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/1 "2015-11-30T14:57:53Z")

</div>

![68727-runman.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/1/3011f8670c3f5d313d0639e655961e281e2f415d.jpeg)

its on my first player now i want it on my second player

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [November 30, 2015, 9:16pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/2 "2015-11-30T21:16:43Z")

</div>

Hello master041398,

We’ll need to know how you have your UMG set up to know how you would go about adding it for the second player. Could you post some screenshots of the blueprints to give us a frame of reference?

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 1, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/3 "2015-12-01T14:29:31Z")

</div>

![68869-umg.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/1/f71ede8475c642560b0ca7c4781a1c4806416901.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 1, 2015, 3:39pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/4 "2015-12-01T15:39:43Z")

</div>

How are you spawning this widget for the first player?

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 3, 2015, 1:36pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/5 "2015-12-03T13:36:04Z")

</div>

![69168-addcoin.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/a/9eae7cd4a0088f379760545672e49d11f81c0ed4.png)

i believe this is what you want to see

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 3, 2015, 2:55pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/6 "2015-12-03T14:55:50Z")

</div>

Unfortunately that’s not what I need to see. I need to the blueprint script where you add the widget to the viewport. Depending on how you’re doing it, there could be multiple ways to approach this.

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 7, 2015, 1:58pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/7 "2015-12-07T13:58:35Z")

</div>

![69595-addcoins2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/1/731ad8bebd6fbc29b00327f4f44514ccd5176518.png)

alright is this what you are talking about

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8ab0a0961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8ab0a0961](https://forums.unrealengine.com/u/anonymous_user_8ab0a0961)\
**Post date:** [December 7, 2015, 3:04pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/8 "2015-12-07T15:04:01Z")

</div>

That’s still not it. Somewhere in your BPs you’ll create the widget and and then “Add to Viewport”.

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 8, 2015, 1:37am UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/9 "2015-12-08T01:37:07Z")

</div>

![69671-coins3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/a/35abe3a4a4a37cd351922195ae26bae7b3285dab.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 8, 2015, 3:38pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/10 "2015-12-08T15:38:51Z")

</div>

Depending on how your splitscreen is set up, you should be able to edit the Widget BP itself to duplicate everything you’ve already done to the right side of the screen (Just copy and paste the existing widgets). You can then replace the binding for the Coins’ counter to track a variable that corresponds to how many coins the 2nd player has collected.

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 9, 2015, 1:56am UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/11 "2015-12-09T01:56:52Z")

</div>

i understand how to duplicate it but what would i change the variable to

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 9, 2015, 2:38pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/12 "2015-12-09T14:38:47Z")

</div>

You would want to use a second variable for the second player. You could set it up just like you did for the first player’s coin count, but you’ll need a separate variable for the second player.

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 9, 2015, 2:54pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/13 "2015-12-09T14:54:17Z")

</div>

alright i have done that but i have a new issue of nothing showing up for the second player here is a screen shot

 ![69865-missingcoins.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/9/1a937a9018650ac0b10a975d143ea595f664da2b.jpeg)

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 9, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/14 "2015-12-09T15:00:03Z")

</div>

when i went into the umg to add in the second player i changed the get text so that why it would cast to the second player and now this happened

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 9, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/15 "2015-12-09T15:00:26Z")

</div>

Are you sure that the Text Block or Text Box that contained your coin count got duplicated as well? If the text block/box is there, the binding may have a problem as it may not be reading the variable correctly. It should be at least showing a 0.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 9, 2015, 3:23pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/16 "2015-12-09T15:23:12Z")

</div>

If it’s showing blank after setting up the binding, it could be failing the cast or not reading the character correctly. The binding should be set up something like this:

 ![69874-umgbinding.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/7/697b808c9f1c5ff42d81ee0db7aba3f0d4362406.png)

Notice the Player Index in the Get Player Character node is set to 1, which would refer to the second player character since it is a 0-based system. This is assuming that you’re actually doing multiplayer and that these characters are using separate controllers. If this is not the case, the solution will be quite different since both players are technically considered to be the same player.

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 10, 2015, 1:12am UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/17 "2015-12-10T01:12:22Z")

</div>

yes i use two different controller for the game but after changing that it still has not changed

It disappears after i change the binding to the “GetText\_1” other wise its at 9999

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 10, 2015, 3:16pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/18 "2015-12-10T15:16:51Z")

</div>

Can you share a screenshot of your binding’s graph?

---

<div class="post-metadata">

**Author:** ![master041398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@master041398](https://forums.unrealengine.com/u/master041398)\
**Post date:** [December 10, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/19 "2015-12-10T18:18:34Z")

</div>

![70095-binding.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/7/fd72adf7ca843c7f9656a8b18019d1604b833d30.png)

 ![70097-binding+2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/e/77eb44d484a5ac9c453a64d405fb2d15797b54f8.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 10, 2015, 7:00pm UTC](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129/20 "2015-12-10T19:00:55Z")

</div>

The cast is failing in this case, as you are looking at the Player Index 0 when using the “Get Player Character” node. 0 refers to the first player. If you wish to refer to the 2nd player, you’ll need to enter “1” into that Player Index field.

[Next page](https://forums.unrealengine.com/t/i-want-for-my-second-player-to-have-this-display/340129.md?page=2)
