[Behavior] moveto

Post your completed addons to share with the community

Post » Mon Dec 05, 2011 11:41 am

Thanks for the updates.
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Tue Dec 06, 2011 9:17 pm

Awesome plugins , especially the moveto one
-kbdmaster

10/10 , best plugins
-A random guy that i saw in the street

B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Dec 09, 2011 9:03 am

[QUOTE=rexrainbow]

The drag&drop will pick the topmost(max zindex) instance if overlapping.

[/QUOTE]

thanks for the awesome plugin

I've try the DragDrop a little bit and my cursor did always pick up both objects if they are overlapping :/
I insert a sprite and then add DragDrop behavior
is anything I do wrong or something I just miss?

thanks
B
4
G
2
Posts: 15
Reputation: 1,230

Post » Fri Dec 09, 2011 9:08 am

Uh, are these two(or more) overlapping instances not the same kind of sprite?rexrainbow2011-12-09 09:31:29
B
97
S
22
G
178
Posts: 4,119
Reputation: 104,045

Post » Mon Dec 12, 2011 2:45 am

ah, yes, they are different sprite
here is the cpx
cpx file

if I click the middle of 3 sprite, then all 3 sprite was go to the same position and can not be spread anymore

thanks for the reply
B
4
G
2
Posts: 15
Reputation: 1,230

Post » Mon Dec 12, 2011 2:49 am

wow, I just tried if they are in same sprite and no problem
so probably yes, it happen if they are in different sprite
B
4
G
2
Posts: 15
Reputation: 1,230

Post » Mon Dec 12, 2011 3:01 am

Yes, each kind of sprite will be processed independently.rexrainbow2011-12-12 03:42:20
B
97
S
22
G
178
Posts: 4,119
Reputation: 104,045

Post » Mon Dec 12, 2011 7:08 am

Does the DragDrop plugin allow for drop targets?...didn't see anything in the source that would indicate this, but thought I would ask...

also, trying to allow for drop targets thru use of sub-events and imagepoints without any success...think I am using sub-events incorrectly




Any help or advice greatly appreciated...
thx.

omancipator2011-12-12 07:13:29
B
3
G
1
Posts: 1
Reputation: 702

Post » Mon Dec 12, 2011 8:37 am

[QUOTE=omancipator] Does the DragDrop plugin allow for drop targets?...didn't see anything in the source that would indicate this, but thought I would ask...

also, trying to allow for drop targets thru use of sub-events and imagepoints without any success...think I am using sub-events incorrectly




Any help or advice greatly appreciated...
thx.

[/QUOTE]

In your case, you'd see that when you drop your chicken leg on the plate,
your mouse correctly becomes "normal",

it means that DragDrop plugin allow you to drop on targets.

It's about event.
In your subevents, only one leg will go to imagepoint1.

Your first leg on the plate, will be:
1. set spot_two to True,
2. move leg to image point 2,
3. set spot_one to True,
4. move leg to image point 1

While the state right now is: both spot_one, spot_two equal to True,
therefore, nothing will happen after you put the first chicken leg.
gonzdevour2011-12-12 08:39:27
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Sat Jan 07, 2012 6:07 am

@rexrainbow: thanks for the nice plugins :)

for dragdrop, the dragged object always gets centered first, at the current mouse position. is there a way, to drag and drop an object right from the original point of dragging the object?
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest