iseeyou94056 Posted May 4, 2011 Share Posted May 4, 2011 can anyone show me how to make a drag and drop thing in javascript for mccodes for a mod im making Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted May 4, 2011 Share Posted May 4, 2011 http://makewebgames.io/showthread.php/38857-Drag-And-Drop-Equip-Remove-Weapons-Armour Example of drag and drop Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 4, 2011 Author Share Posted May 4, 2011 i already looked at that and it didnt help :/ Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted May 4, 2011 Share Posted May 4, 2011 Well thats an example of drag and drop. I dont see why you could not apply that to any drag and drop situation. Perhaps you should explain what you are trying to do. Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 4, 2011 Author Share Posted May 4, 2011 im not really sure how to explain i just want like a normal table to be drag and drop the best way to see what i mean is go to http://www.torn.com and login then click home i want something kinda like that Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted May 4, 2011 Share Posted May 4, 2011 (edited) Yawn. I want something like torn. Sorry I cant be bothered to login and look at what you mean. Edited May 4, 2011 by rulerofzu Quote Link to comment Share on other sites More sharing options...
Uridium Posted May 4, 2011 Share Posted May 4, 2011 (edited) Look on Yahoos YUI pages they have a selection of Drag n Drop Methods There are many Methods of drag and drop stand alone which users drag from a screen but when screen is refreshed the drag n drop goes back to its original state. Or theres the dbase method which stores the locations that a user has made so they are in the same place when user refreshes screen Edited May 4, 2011 by illusions Quote Link to comment Share on other sites More sharing options...
Uridium Posted May 4, 2011 Share Posted May 4, 2011 Heres an example of one that saves its position... >>>> http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php And the Download Link for it >>>> http://www.webresourcesdepot.com/?download=jQuery-Dynamic-Drag-Drop Quote Link to comment Share on other sites More sharing options...
MrAnthony Posted May 4, 2011 Share Posted May 4, 2011 Wait from reading what you have put do you want an index.php like torn's? If so i have made one just like it its 80% done free modification Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 7, 2011 Author Share Posted May 7, 2011 cool post it up when it is done :) Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted May 7, 2011 Share Posted May 7, 2011 never played torn so i dont know exactly what you want but all dragging and dropping is is on mousedown set a variable isdragging to true then onmousemove set the objects/elements to the mouse cursors position which can be retrieved by event.pageX/pageY or event.mouseX/mouseY Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 8, 2011 Author Share Posted May 8, 2011 i have no clue how to do that Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 8, 2011 Share Posted May 8, 2011 Ok, If I get any time, I'll make this for McCodes and release for free. Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 9, 2011 Author Share Posted May 9, 2011 ok thank you Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted May 10, 2011 Share Posted May 10, 2011 OMG lol open up Torn's source, and copy the jqery scripts, then copy the area in which those drag and drop is at in the source code, then take out torns names and link it with your tables in your databas, and the fields.. really simple if you know how to copy haha... Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 10, 2011 Share Posted May 10, 2011 Why copy torn, it isnt even a good game. Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 14, 2011 Author Share Posted May 14, 2011 no i want that for a example im not gonna use it the same way Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 21, 2011 Author Share Posted May 21, 2011 are you still gonna do it Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 21, 2011 Share Posted May 21, 2011 Didnt illusions make it already? I'm not going to make something that's already been done am I? Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 21, 2011 Author Share Posted May 21, 2011 no i did not see it if he did whats the link to it i cant find it Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 22, 2011 Share Posted May 22, 2011 WOW Really? I did a two second search for "Drag and Drop Inventory" and found the correct result. Please atleast search for it next time. If you did, I'm sure you would have found it. http://makewebgames.io/showthread.php/38857-Drag-And-Drop-Equip-Remove-Weapons-Armour Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 22, 2011 Author Share Posted May 22, 2011 read what i said above thats not gonna help me thats not what im looking for not a drag and drop inventory a drag and drop index.php where you can change everything to your likeing Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 22, 2011 Share Posted May 22, 2011 Ahh, well good luck finding that for free :/ Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted May 22, 2011 Share Posted May 22, 2011 geez just make a test table and copy torn's drop boxes it easy.. and no i wont make it for free... its too time consuming when im busy doing something else.. just giving you an idea how to do it... Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted May 22, 2011 Author Share Posted May 22, 2011 (edited) nvm i guess i dont get help Edited May 22, 2011 by iseeyou94056 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.