Web Analytics Made Easy -
StatCounter how to drag and drop on a specific area? - CodingForum

Announcement

Collapse
No announcement yet.

how to drag and drop on a specific area?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to drag and drop on a specific area?

    Hello,

    I am trying to create a game where objects are moved between two containers. The container on the right has some lines where the objects should rest, but when I move them, they go below the line. Do I need to create a container for each object in order for them to rest on top of the line?

    Thank you for your help, I'm new at this.

  • #2
    Do you have a container around the area where you want them to be able to be dropped?
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

    Comment


    • #3
      Yes, I have one big container that holds two smaller ones.

      Comment

      Working...
      X