frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

How to make Drag And Drop

edited March 4 in How To
How would one make it where you could pick something up and drop it (kinda Clash Royale style-ish)
Tagged:

Comments

  • move it with the coordinates of the mouse and the click as a switch
  • Screenshot 2019-03-03 at 11.31.34 PM
    I got this far then didn't know what to do
  • I was thinking that the X and Y of the Mouse Move would go into the switch, then position, but then how would it be able to tell the position???
  • Any suggestions on how to do this @grazer
  • edited March 4
    I started on a setup, but haven't fully finished it and won't be able to send it by picture cause I'm at college. Though if you want to see what I have done so far, its on lv3 on roll, roll, mania.

    It works but it drops automatically when not moving and wouldn't be good if you have gravity on.

    http://flowlab.io/game/view/1042294

    I'll send it to you when finished.
    Probably late tonight or tomorrow.
    (You're on right track with x and y going into switches)
  • Ok, so I have 2 models for the drag and drop.
    It just depends if you have gravity on or not because it would drop the piece while your holding it.
    This of course isn't a problem with no gravity. Is this what you need @MagmaDude100?

    No Gravity:
    dad

    With any Gravity:
    dad2
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch