Page 1 of 1

Drag & Drop Inventory for a Browser MMORPG

Posted: Mon Aug 25, 2014 9:52 pm
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

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Mon Aug 25, 2014 11:12 pm
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/

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Tue Aug 26, 2014 9:21 pm
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.

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Fri Aug 29, 2014 1:24 pm
by hallsofvallhalla
Just add a <a href> link to the image or a onclick='function()' to the image

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Sat Aug 30, 2014 5:36 am
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);

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Sat Aug 30, 2014 10:08 pm
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.

Re: Drag & Drop Inventory for a Browser MMORPG

Posted: Sun Aug 31, 2014 8:01 am
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!