[Behavior] moveto

Post your completed addons to share with the community

Post » Wed Aug 01, 2012 2:55 pm

Update

- Add PushOutSolid behavior to interact with solid object, this behavior is extracted from 8-direction behavior.
- Update moveTo behavior to re-calculate velocity when position changed by event/other behavior (for example, PushOutSolid behavior).


Here is a demo for moveTo with solid object.
- click any point to move to.
Capx
Note: PushOutSolid behavior must put under other behavior.


@Goury

Here it is~rexrainbow2012-08-01 15:01:26
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Fri Aug 10, 2012 6:36 am

@rexrainbow
U r my hero!
Tnx, ill as soon as i get back to home
B
18
S
3
G
4
Posts: 46
Reputation: 3,873

Post » Fri Aug 24, 2012 10:51 pm

Rex

I get it that you split the Touchmouse ..very good!.. however i am trying to load a older (like 3 months old ) large project that requires touchmouse in order to open the capx

C2 will not let me load it. what do i do?
B
8
S
2
G
2
Posts: 3
Reputation: 1,893

Post » Sun Aug 26, 2012 3:59 am

@sgfx

Uh, I don't know, sorry. You might post more information.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Sep 03, 2012 9:07 pm

How can I apply the moveTo for a Tower Defense game enemies movement?
B
84
S
30
G
22
Posts: 384
Reputation: 18,457

Post » Fri Sep 07, 2012 2:57 am

@jogosgratispro

See Rez's path finding, or my zigzag behaviorrexrainbow2012-09-07 02:58:30
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Fri Sep 07, 2012 4:56 am

@rexrainbow

thanks
B
84
S
30
G
22
Posts: 384
Reputation: 18,457

Post » Sat Sep 08, 2012 3:29 pm

Hey, thank's for your work on the Move To Behavior, very usefull.

I have a little question about it : is it possible to know when the objet reach his target position ?

Knowing that could help me set the start of another event.

Thanks, and sorry for my bad english !
B
25
S
5
G
1
Posts: 26
Reputation: 4,294

Post » Sat Sep 08, 2012 5:03 pm

DrGero. I just use a box sprite and make it invisible and check for collision with it. For example i will have 6 sprites labeled marker1 through marker5.   Moveto marker1. On collision with marker1, moveto marker2.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Sat Sep 08, 2012 5:41 pm

Thank's for the help ArcadEd, but that's what I used to do before I use the move to behavior (Move behavior instead). ^^"

It could be much simpler with an integration directly to the move to behavior, I think. (Sorry if it seems dumb or something, whatever )
B
25
S
5
G
1
Posts: 26
Reputation: 4,294

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest