Forum rules - please read before posting.

Draggable for 2D

Hi,

Please advise me how to create draggable object in 2d game.

I have fusebox puzzle. There are wires inside. Each wire have to be dragged to right cleat.

Comments

  • Welcome to the communuty, @Anate.

    AC's draggable system is for 3D objects only. However, you can make use of AC's "Drag and drop" option for inventory to implement a simple drag/drop mechanic in 2D.

    A little custom scripting is typically necessary, depending on the behaviour you're looking for, but you can check out a sample template, with example, in the form of the "Puzzle template: Item arranging" package over on the Downloads page.

    Have a play with the example scene and see if that offers the kind of behaviour you'd like. Otherwise, share some images and a full description of what it is you're looking to achieve and I can see what advice I can give.

  • Hi. I downloaded the sample template but it have corrupted ArrangingPuzzleExample_InventoryManager file.

  • What are your AC and Unity versions, and what's the exact error message you're getting?

  • edited September 2020

    I can't reproduce such an issue myself, but you can recreate the example Inventory Manager easily enough: it's just got three items named Red, Green and Blue.

    No interactions or special settings, just each has its "Main graphic" set to RedBall, GreenBall, and BlueBall respectively, from the /Examples/Sprites folder.

  • Unfortunately it doesn't work anyway. The circles don't move.
    AC 1.63.2
    Unity 5.3.4

    http://prntscr.com/ul72zn
    http://prntscr.com/ul73pl
    http://prntscr.com/ul757p
    http://prntscr.com/ul75nt

  • Your Unity and AC versions are too old - the package requires a minimum version of 2017.4.3.

    In a fresh project, import the latest AC from the Asset Store into a newer Unity release and try again - the Inventory Manager should import correctly, as well.

Sign In or Register to comment.

Howdy, Stranger!

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

Welcome to the official forum for Adventure Creator.