Drag & Drop Inventory for a Browser MMORPG

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
ApaKhe
Posts: 18
Joined: Fri Sep 06, 2013 2:55 pm

Drag & Drop Inventory for a Browser MMORPG

Post by ApaKhe »

So, I want to learn how to build a drag & drop inventory for a browser mmorpg...
Can someone point me to a JS/JQ documentation on that? I cant find anything on google, and the only link that seems good leads to a 404 page :/...
Or, if there are other methods to make that, other than JS/JQ, I want to hear them :D
Help support the Darcan project: http://www.gofundme.com/dbm620 :)
User avatar
Verahta
Posts: 441
Joined: Wed Aug 24, 2011 1:50 am

Re: Drag & Drop Inventory for a Browser MMORPG

Post by Verahta »

Simple Google search for "drag and drop tutorial" or something similar turns up tons of links:

https://developer.mozilla.org/en-US/doc ... g_and_drop

http://blog.teamtreehouse.com/implement ... g-and-drop

https://www.youtube.com/results?search_ ... y+tutorial

This one is a few years old, not sure if Jquery has changed that much though:
http://www.elated.com/articles/drag-and ... ial-guide/
"In order to understand recursion, one must first understand recursion".
User avatar
kibo95
Posts: 35
Joined: Wed Jul 16, 2014 6:59 am

Re: Drag & Drop Inventory for a Browser MMORPG

Post by kibo95 »

i have learned that form one of halls tutoprials
but i'm still trying to find out how to add link to this drag and drop inventory ,so it could take me to another page when i click on it.
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Drag & Drop Inventory for a Browser MMORPG

Post by hallsofvallhalla »

Just add a <a href> link to the image or a onclick='function()' to the image
User avatar
kibo95
Posts: 35
Joined: Wed Jul 16, 2014 6:59 am

Re: Drag & Drop Inventory for a Browser MMORPG

Post by kibo95 »

Just add a <a href> link to the image or a onclick='function()' to the image
but how to add a href to this code?
whenever i try to put it, it shows me a mistake

Code: Select all

			house[counteri].setImage("images/buildings/" + building + "_3.png",75,75);
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Drag & Drop Inventory for a Browser MMORPG

Post by hallsofvallhalla »

ah, sorry i do not remember those tutorials. I moved to HTML5 than raw javascript. I will need to look back into them.
User avatar
kibo95
Posts: 35
Joined: Wed Jul 16, 2014 6:59 am

Re: Drag & Drop Inventory for a Browser MMORPG

Post by kibo95 »

ah, sorry i do not remember those tutorials. I moved to HTML5 than raw javascript. I will need to look back into them.
ok,pleae if you can ( i believe it's 2 minuets for you ) to check this and tell me solution
thanks a lot halls!
Post Reply

Return to “Beginner Help and Support”