ID:174926
Jul 5 2003, 12:10 pm
|
|
Well I looked up MouseDrag() and MouseDrop() but now Im more confused...How could I make it so you drag the mouse over mobs then when you let go they are selected then if you click somewhere they move there? Thanks!
|
Jul 6 2003, 9:21 am
|
|
:places a bumper sticker on this topic:
|
In response to Koolguy900095
|
|
:adds a to much to ask sticker on this topic:
|
Check out Maz's publications page. He has a demo(with code) of drag and drop mob movement.
|
Look up block(), Click(), and MouseDrag().
MouseDrag gives you the start and end turfs, conveniently, block takes two turfs which are the start and end. You can then loop through the list of turfs that block returns to find all of the mobs in there and add them to a list. Then, when you click, tell all of the mobs in that list to move to where you clicked. |