playMaker

Author Topic: Subject: Need to start a "Drag and Drop" logic.  (Read 511 times)

RedsWar

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Subject: Need to start a "Drag and Drop" logic.
« on: January 13, 2018, 08:00:59 AM »
Hi everyone,

I'm new here and newbie in programmation in general, I am a graphist :)
Is anyone can teach me or send me on a tutorial for starting and understanding
the "Drag and drop" logic of a card game?
I can move my cards in 3D but I need to made it in 2D and for a reason
I don't understand, it no work or I don't find how...
The point of all this is just to know how to handle cards in a CCG game.
Like the card move with the mouse pointer and so on...
I have searched on the web too for video but most of all aren't for PlayMaker.

Thanks in advance,
RedsWar.
« Last Edit: January 13, 2018, 09:31:17 AM by RedsWar »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3183
    • View Profile
    • jinxtergames
Re: Subject: Need to start a "Drag and Drop" logic.
« Reply #1 on: January 13, 2018, 12:13:50 PM »
Hi.
I recently made a tutorial for drag and drop, but it is build in ui.


RedsWar

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: Subject: Need to start a "Drag and Drop" logic.
« Reply #2 on: January 13, 2018, 12:46:24 PM »
Thanks,

I have view it but its not a tuto, just a sort of review, this is not showing how
made everything.
A exemple, at a time, he utilise a custom action but don't show witch and
how made it.

Thanks anyway ;)
RedsWar

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3183
    • View Profile
    • jinxtergames
Re: Subject: Need to start a "Drag and Drop" logic.
« Reply #3 on: January 13, 2018, 04:09:53 PM »
Hi,
you can pause the tutorial and build it,
i don't make each tutorial from scratch while recording, as it will make the tutorial 4 times longer.

Maybe you should start by looking to some beginner tutorials just to get to know the basics of Playmaker then it will be easier to follow my and other tutorials :).

You can find many tutorials on the User Tutorial Wiki page.

Is this your first project with playmaker?

RedsWar

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: Subject: Need to start a "Drag and Drop" logic.
« Reply #4 on: January 14, 2018, 05:00:13 AM »
First, thanks for the response :)

Yes, I have already paused the video and build it but, as I say, some of the parts aren't explained clearly. As you say, it be too long.

Yes, this is my first PlayMaker project alone, I have buy it because I am a graphist and my programmer friend has leave me alone :(

I have made all the graphics of the game, Cards, UI, Menu and so on... and with
PlayMaker I have made the basics work like the nav in the menu, the level selection. I have a better feeling with the 3D but move a card in 2D, I can't,
I don't know why...

I follow you'r advices and go looking some basics UI tuto's and after come back on your.

Thanks a lot,
RedsWar

P.S.: At 14min in the video, the user use a custom action named "Get Transform Sibling Index", is anyone can give me the content of this action, it is not explained in detail.

((Finally, I have find the custom actions manually on the net because my ecosystem doens't work))
« Last Edit: January 14, 2018, 09:09:55 AM by RedsWar »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3183
    • View Profile
    • jinxtergames
Re: Subject: Need to start a "Drag and Drop" logic.
« Reply #5 on: January 14, 2018, 08:55:09 AM »
Hi.
The get sibling index gets the "position" from a child object in the parent.

So if the child is on top of the list it would be index 0
The child below it would be index 1 and so on.0