Working with Variables and Interfaces

Sorry I know that is also quite hard to follow but my capture software isn’t working atm but that works here’s a zip of all the photos they’re numbered in order so follow it step by step

actually it wont let me upload the zip and there’s a few pictures missing in that last post I made you should still be able to follow it though if you send me your email I can send the zip to you otherwise youll just have to try your best to follow it but I tested that example and it works.

I’ll try my best to walk you through it.

  1. create a game instance

2 ad variable in game instance called total money or something like that. make it editable and expose on spawn.

3 go to edit in the ue4 browser and editor pref then maps and modes then scroll down to game instances and find the one you just created name it something easy to recognise like my game instance or the like

4 vreate an empty actor and a sphere collision and a static mesh

5 add a variable called value and make it editable and expose on spawn

6 in the event graph for your money actor do what I showed you in the picture compile and save

7 drag your money actor on to the level

8 go to your thirdperson character blueprint and add all the script I showed you in the picture then compile and save and it should all work.

Hope this was helpful its quite hard to show you without avtually showing you.