Develop Trading Card Game Battle System With Unity 3D: Part V (Simple & Advanced Dragging Script)

Vladimir Limarchenko, Game Developer, Unity3d and C#

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
2 Videos (33m)
    • Simple Dragging Script

    • Advanced Dragging Script


About This Class

In this class/series we set an ambitious goal of developing our own trading card game with Unity3d and C#, mostly focusing on card game battle mechanics.

In most modern trading card games playing cards, selecting cards for creature's attacks and hero powers is done by using drag and drop mechanic.

Learn how to enable dragging for the cards in your game:

  • Create a simple script for drag and drop behavior in C#
  • Drag your card by any point on the card, not just the card's center
  • Introduce yourself to the concept of tweening or in-betweening with DOTween tweening engine for Unity
  • We'll use tweening to return the card to its original spot after the dragging is ended. It will be used in the game when we drag the card, but our target is invalid, or there is nothing beneath the card.

By the end of this class you'll be able to make a simple drag and drop behavior for any of your Unity projects. You'll get a quick introduction to tweenind and using DOTween engine.

With this class you will gain access to a compete, fully functional Unity project that is an example of a card game battle. The game mechanics are somewhat similar to Hearthstone: custom spells, hero powers, creature effects and so on.

Additional information:

  • The files showed in the course are downloadable from the link that you can find in the "Class Project".
  • The next class of this series will be published on 2016.12.10.





Vladimir Limarchenko

Game Developer, Unity3d and C#

I am a Unity3d and C# developer with about 2,5 years of experience in game development. I also have a scientific background. I got a Ph.D. in Theoretical Mechanics in 2014, but then decided to pursue my childhood dream of becoming a game developer. I'm mostly interested in making 2D games. In my opinion, a perfect game should have some tactical or puzzle element to it. 

Over the last couple of years I've also worked as an instructor and created several courses on game development. Some of the topics of my courses are: making a 2048 game, building quiz apps, creating a simple virtual pet game, animating 2d characters, building an in-game character customization system.

I'm always willing to experiment and work on some interesting and challenging game mechanics.