The Daily Click ::. Forums ::. Klik Coding Help ::. Drag n Drop Tree List?
 

Post Reply  Post Oekaki 
 

Posted By Message

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
6th October, 2004 at 20:25:37 -

OKay, I have a Tree List object. YOu know in mmf where you're building your frame and you have a tree list selector on the side that stores your objects? Then, when you click on an item and then drag, it goes with the mouse. And when you release it, the object is dropped into the playfield. How would you be able to do something like that at run-time? Drag n Drop from a Tree list, that is. Thanks in advance.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
11th October, 2004 at 14:44:53 -

Here is how to make click & drag widnows really easy in MMF.
Make 1 frame, the main frame where you want the windows you drag, to appear in.

Make another frame, this frame will be the window you want to drag, make it any size you want.

Then go into the main frame & create the Subapplication object (it comes with MMF, but only works in MMF) Set the frame sizes in this object, & make it either appear at the start of the frame, or you can shut that off & make it appear at runtime. Once the window is made, you are able to use it like both frames are playing at the same time, & both are fully drag able, & if you set it too, you can also resize the windows while its running, & such.

Hope this helps, I'll make an article on the subapplication object & such. Its not extremly hard, but takes a few minutes to get used too. Good Luck.

 
http://www.facebook.com/truediamondgame

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
11th October, 2004 at 20:30:57 -

Well for those who dont have TGF & think it might be in TGF too, I figured I would just post that it is in MMF only. Think about that? Might help if ya did, but I wouldnt want to put to much pressure, steam might start flowing out of your ears.

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
11th October, 2004 at 22:04:23 -

Umm, I know about sub-apps. Here's what I'm trying to do (the simpler version) again. The person selects the item from the tree list object and then they can drag and drop it on to the play field. Sort of like a red alert2 construction menu only with text. Its something like an item box. OKay. thanks though.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
12th October, 2004 at 04:48:00 -

I don't think you can drag out of the box like you would drag a file... (Not in the same way, anyway.) It isn't too hard to do this, though - use a flag to detect if the mouse clicked on an item, and if the mouse is held, is outside your treelist object and that flag is on you can create an object that moves with the mouse (to be placed when the mouse is let go). How you take care of that object is up to you, though.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click