Drag & Drop in just 3 lines
Author: | Simon Colmer
|
Submitted: | 26th February, 2003
|
Views: | 5732
| Rated: |
|
|
I have found a good way to make a 'drag and drop' script in just 3 conditons!.
I use this in some things i make. This can be usefull if you want to make somthing move (e.g. click and create lol)
Aswell its got no errors!
CREATED ON TGF
[Requirements]
1 Object and a basic understanding of values
Download sample: http://www.Xvolt.homestead.com/files/Drag_Drop.zip
Ok here we go.....
------------------------------------------------------------
[Condition 1]
=Alterable Value A of (Object 1) >0
[Event 1]
(Object 1)=Subtract 1 From Alterable Value A
------------------------------------------------------------
[Condition 2]
=User clicks on (object 1)
[Event 2]
(Object 1)=Set Alterable Value A to 2
=Set Alterable Value B to X ("Object 1")-Xmouse
=Set Alterable Vlaue C to Y ("Object 1")-Ymouse
------------------------------------------------------------
[Condition 3]
=Repeat While Left Mouse is pressed
+Alterable Vlaue A of (Object 1) >0
[Event 3]
(Object 1)=Set X Position to XMouse + (Object 1)Value B
=Set Y Position to YMouse + (Object 1)Value C
=Add 1 to Alterable Value A
------------------------------------------------------------
By using this you can hopefully create a drap and drop script for any Click Product (not jamagic)
http://www.Xvolt.homestead.com
http://www.Diddly.tk
http://www.ATOonline.homestead.com
By Simon Colmer
|
|
|