[Behavior] moveto

Post your completed addons to share with the community

Post » Wed May 16, 2012 1:55 am

@ghostwheel

For example

[code]+ on mouse click
    - Sprite: Set moveTo target to (Mouse.X, Mouse.Y)[/code]
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Fri May 25, 2012 5:37 am

Update:

I split touch/mouse input control into touch wrap plugin. And made new cursor behavior -- cursor2, new drag&drop behavior drag&drop2.
The usage of these two new behaviors is the same as older. The different is, user need to put touch wrap plugin into project. It will pop-up an alert when user forgot to put touch wrap.

cursor -> cursor2 + touch wrap
drag drop -> drag drop2 + touch wrap


Actually, touch wrap plugin is modified from official touch plugin. So that it could be use in new exporter (cocoonjs, appmobli).
The different between my touch wrap and official touch is: touch wrap will keep the last touch.X, touch.Y after touch end. official touch will set touch.X, touch.Y to 0 after touch end.rexrainbow2012-05-25 06:59:28
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Jul 11, 2012 4:22 pm

@rexrainbow - what is the status of the TouchMouse plugin? I would recommend it is de-listed - it's superseded by the official Touch plugin and has some bug fixes the TouchMouse plugin does not, and some users seem to keep running in to TouchMouse bugs that don't exist in the official Touch plugin.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Jul 11, 2012 5:00 pm

@Ashley

Yes, it had been stop maintain. I'll remove it, thanks for notification.rexrainbow2012-07-11 17:02:32
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Jul 17, 2012 8:39 pm

It seems moveto overrides 8way solid detection.
I belive there must be way to detect solids and come round em with moveto.
B
18
S
3
G
4
Posts: 46
Reputation: 3,873

Post » Tue Jul 17, 2012 11:08 pm

You probably want something more like A* and pathfinding. 00Rez came up with a really sweet couple of plugins that can work in conjunction with one another to do what you're hoping. You can find them here in the Rez Repo topic. You can even find an example of using Rex's moveto in conjunction with the pathfinding behavior and A* plugin. Pretty cool stuff.TL222012-07-17 23:08:18
B
57
S
20
G
7
Posts: 305
Reputation: 8,779

Post » Wed Jul 18, 2012 1:29 am

Update:

drag&drop,drag&drop2: fix bug on mouse drag

@delgado

I had fixed this bug, you might download this behavior again.

B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sat Jul 21, 2012 1:15 am

Update

MoveTo behavior:
- Remove(deprecated) "condition:On moving", please using "condition:Is moving"
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Jul 31, 2012 10:47 am

@Goury

I will think about this requirement.
I will try to add a "push out solid" behavior from 8 direction to interact with solid object.rexrainbow2012-07-31 11:06:41
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Aug 01, 2012 12:12 pm

@rexrainbow

tnx
B
18
S
3
G
4
Posts: 46
Reputation: 3,873

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests