Add virtual CURRENCY (Coins, Gems, Energy) to your game! - Playfab tutorial (#11)

🎮 Download Core to create games for FREE: bit.ly/CocoCode-Core
🚩 Join the Game Creator Challenge: itch.io/jam/gcc
🎁 Support me and DOWNLOAD Unity project: www.patreon.com/posts/5974802...
This tutorial/guide will show you how to implement virtual curreny in your game using Playfab. Virtual currencies might be useful if you'd like to implement some kind of rewards or store to your game. Please note, that adding virtual currency using client game may be unsafe - in future videos I will cover how to overcome that.
--------------------------------------------------------------------------------
👨‍💻 SOCIALS:
💜 Join our Discord: / discord
🔵 Follow me on Twitter: / bionicl333
--------------------------------------------------------------------------------
🎓 YOU WILL LEARN:
- What is virtual currency
- How to add virtual currency to your game
- What is energy in games
- How to add energy to game in Unity
- How to add coins in Unity
- How to add virtual currency in Unity
- How to add virtual currency using Playfab
--------------------------------------------------------------------------------
⚙️ VIDEO CHAPTERS:
0:00 - Intro
0:15 - Configure currencies
1:17 - Get currencies in Unity
3:53 - Core games [sponsored segment]
5:33 - Spending coins
8:39 - Adding virtual currency
9:07 - Energy

Пікірлер: 66

  • @CocoCode
    @CocoCode2 жыл бұрын

    Remember to check out Core and start creating your online games for free: bit.ly/CocoCode-Core

  • @pinguis_thorax

    @pinguis_thorax

    2 жыл бұрын

    can you make a video about player publish data?

  • @_ace55
    @_ace552 жыл бұрын

    Man, you are definitely my favorite youtuber! Clean editing, using modern tools etc. and all of that with great explanations. Please continue to make these tutorials!

  • @OuachitaOFFROAD
    @OuachitaOFFROAD2 жыл бұрын

    This channel is an absolute hidden gem. Super high quality tuts. Keep doing what you are doing - its only a matter of time before others find you.

  • @joelfrom08
    @joelfrom082 жыл бұрын

    I've just found your channel because of your slider tutorial. Great work, keep it up!

  • @Team25VR
    @Team25VR6 ай бұрын

    WOW IM IMPRESSED!!! The way you lay out code makes it easy to implement into my other unity scripts. I love the content! Keep it up man :)

  • @koala1191
    @koala11912 жыл бұрын

    Hey I just recently discovered this channel and i'm loving your videos so far, please keep it up!

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Welcome aboard! 🥥

  • @RichOrignisl
    @RichOrignisl2 жыл бұрын

    Best Unity Tutorial channel out there!

  • @duztine
    @duztine9 ай бұрын

    Thank you. Very clear. Your videos helped me so much

  • @sandichhuu
    @sandichhuu Жыл бұрын

    Simple and easy to understand, thank you.

  • @ksk5061
    @ksk50612 жыл бұрын

    Thank you so much for this coco!!

  • @Moon_579_XD
    @Moon_579_XD2 жыл бұрын

    Your doing great job keep it up ☺️

  • @ewamajewska587
    @ewamajewska5872 жыл бұрын

    Great job, I love it!

  • @gabanciano
    @gabanciano2 жыл бұрын

    Bro this is awesome. Thank you!

  • @84713
    @847132 жыл бұрын

    We need way more playfab tutorial videos.

  • @universalsites1
    @universalsites1 Жыл бұрын

    Great tutorials, became a Creator Patreon - great work

  • @CocoCode

    @CocoCode

    Жыл бұрын

    Glad to hear that, thank you 🎉

  • @Raviraj-tu5un
    @Raviraj-tu5un2 жыл бұрын

    Great ... We need more videos❤🙌

  • @Jimaniki
    @Jimaniki2 жыл бұрын

    Thank you ! That would be great a tuto about Azure Functions

  • @wellingtonbaroni1405
    @wellingtonbaroni14052 жыл бұрын

    Nice video. i will implemet it as i implemted leadearboard after see your tutorial

  • @SevenOfMovies
    @SevenOfMovies2 жыл бұрын

    oh my god where have you been my entire life love your content and style

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Glad you enjoy it! Any requests?

  • @SevenOfMovies

    @SevenOfMovies

    2 жыл бұрын

    @@CocoCode mybe how to make gun that shoots with a joystick or a simple ai that follows the player

  • @Angel-xp1jy
    @Angel-xp1jy2 жыл бұрын

    DailyRewards tutorial will be great ;)

  • @yashpancholi1718
    @yashpancholi1718 Жыл бұрын

    @CocoCode Can you please tell me what is the database used by Playfab to manage the state and data of the player in Multiplayer games?

  • @Dxstin
    @Dxstin2 жыл бұрын

    Good Video! Could you make a Video about preventing double Login from two Devices at the same time in PlayFab?

  • @davekene
    @davekene2 жыл бұрын

    Great tutorial

  • @banothing4819
    @banothing48192 жыл бұрын

    Thank you!!!❤🧡💛💚💙💜

  • @quantum4214
    @quantum42142 жыл бұрын

    Thanks a lot you really saved my day! Can you make a tut about Avatar Images?

  • @sanagolzar
    @sanagolzar2 ай бұрын

    thank you for the tut , can I use the same currency of user for leaderboard ?

  • @rsioracle
    @rsioracle Жыл бұрын

    How do we make it give rewards on leaderboard reset?

  • @uso2484
    @uso24842 жыл бұрын

    Yo dude, we miss you

  • @adslpiulentoditalia2545
    @adslpiulentoditalia25452 жыл бұрын

    Hey, can you make a video on how to ban cheaters from server side on playfab and telling the reason with some pop up

  • @chasniii
    @chasniii2 жыл бұрын

    Can you make playfab tutorial for "Hourly shop/ market content randomizer, Daily Calendar check in bonus and limited redeemable game code" ?

  • @mzcompany5780
    @mzcompany57802 жыл бұрын

    Hey can you help me by answering my questions *** how can I add these virtual coin in an app like Amazon

  • @user-wd5qd2rh5d
    @user-wd5qd2rh5d2 жыл бұрын

    You are the best!

  • @ApexArtistX
    @ApexArtistX6 ай бұрын

    best tutorial

  • @_ciraz_
    @_ciraz_2 жыл бұрын

    Good day sir Coco Code, I have a Video request. There are things said about a "Mission System" in PlayFab but i couldn´t figure out how to use it. Maybe you can do and make a tutorial on how to do so? The System is like a Quest System, I suppose, and since you´ve added the Virtual Currency, maybe, as a reward, players could get a bit of Virtual Currency (like 100 Gold), after they finished the Quest/Mission? Maybe you could show how to implement quests, by showing maybe 2 examples? Thank you very much for your work and that you took your time to read this comment. God bless you and everyone else who reads this!

  • @haionerdev
    @haionerdev2 жыл бұрын

    Its possible to buy coins with real cash ?

  • @eq3
    @eq32 жыл бұрын

    Hey, if i want to stay logged in when changing scenes, should I make a static class for my playfab login ? Nice vid btw

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Put Playfab manager on object with DontDestroyOnLoad and create a singleton as shown in the video. Hope that helps!

  • @mixeson
    @mixeson Жыл бұрын

    Thanks for sharing with us your knowledge, love your content, one problem that I have is how can I wait for login and inventory to finish the request before I display the values to the screen, I placed my playfab manager into the intro / splash screen at the start of the game so by the time it reaches the main menu everything should be loaded but was wondering if there's something that would wait for these methods to finish first and then continue to the next screen /method, Thank you

  • @CupidGTag

    @CupidGTag

    Жыл бұрын

    I know this is super late but you can probably assign the script you use for the loading screen change or the loading screen itself, then under OnLoginSuccess you can call the thing that'd close the screen. This is 7 months late so you probably figured it out.

  • @mixeson

    @mixeson

    Жыл бұрын

    @@CupidGTag thanks for the explanation, I did something similar, waited until everything finished in the loading screen and only then I’ve progressed to the main menu, that solved my problem

  • @DaveCZ69
    @DaveCZ692 жыл бұрын

    Please make a video on Player movemen animation.

  • @gamoe
    @gamoe2 жыл бұрын

    thanks you

  • @potion_ir8327
    @potion_ir83272 жыл бұрын

    greate job can u teach how to make friend list

  • @sundar2606
    @sundar26062 жыл бұрын

    Redeem system tutorial?

  • @phonglam1134
    @phonglam1134 Жыл бұрын

    How + money??

  • @Moon_579_XD
    @Moon_579_XD2 жыл бұрын

    Adding currency from server side helps us to stop hackers from hacking game currency ? Specially for competitive games ? Like leaderboards. Please reply

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    Hey, that is a great question! For sure virtual currency as shown in the video is way safer than doing it only manually. But on the other hand, please keep in mind, that it is just a first step. For example method I'm showing in the video to add currency is not 100% safe, since some cheaters might be using that to grant currency. To make it more secure, we should disable the ability to give coins on the client, and move that so some kind of a cloud functions to keep it secure. Hope that answers your question! 🎉

  • @Moon_579_XD

    @Moon_579_XD

    2 жыл бұрын

    @@CocoCode thank you brother it helped please make a tutorial video on that please it will help me a lot.

  • @50Gameplay

    @50Gameplay

    Жыл бұрын

    @@CocoCode Maybe a tutorial on that? I mean... the cloud script is also called by the client so how can that be more secure?

  • @ibrahimirgat531
    @ibrahimirgat5312 жыл бұрын

    Can you share your editor theme ?

  • @CocoCode

    @CocoCode

    2 жыл бұрын

    It's Monokai (Visual Studio for Mac)

  • @supendi42
    @supendi422 жыл бұрын

    Top 10 unexpected sequel lol

  • @sorix3538
    @sorix35382 жыл бұрын

    good

  • @VEOdev
    @VEOdev2 жыл бұрын

    PlayFab is really weird, Virtual Currency is a Dictionary why we just can't update the currency from setting the Dictionary directly! but instead we have to call another two separate methods for that and just more API calls , 3 API calls just to update currency. Why not just be like player stats, we can set them from the Dictionary. So in my opinion it is useless to use this feature and waste of time and API calls, I recommend you to use Player Statistics to update and keep track for currency it is much easier and faster.

  • @MrZazzy
    @MrZazzy2 жыл бұрын

    12th Comment and 130th View lets go bois

  • @hippogamez7937
    @hippogamez79372 жыл бұрын

    Its been 4 months since the last upload, this makes me sad :(

  • @Rahulsingh-theraha
    @Rahulsingh-theraha2 жыл бұрын

    No more playfab series😐

  • @dogecoin3785
    @dogecoin37852 жыл бұрын

    Advertising cooperation

  • @mastery-rc1py
    @mastery-rc1py2 жыл бұрын

    First