move to plugin

Get help using Construct 2

Post » Thu Jan 10, 2013 7:48 pm

i discover the plugin behaviour move to, very nice,
i want to make an adventure game like monkey islannd .
how to assign my animations walk left right up down correctly?
how to assign walk behinds zone ( the player is behind a tree)
B
6
Posts: 28
Reputation: 831

Post » Thu Jan 10, 2013 8:56 pm

The easy way is to do a system compare in the Y of your player and the Tree for example.

put the image point of the tree at the bottom of the base of the tree


system every tick
->player.Y >= tree.Y - player move to top
else player move to bottom

this will always put the player in front of the tree when he's lower than the tree's Y value and appear in front of it.
justifun2013-01-10 20:56:38
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Fri Jan 11, 2013 5:06 am

ok i understand but how to assign the animations?
B
6
Posts: 28
Reputation: 831

Post » Fri Jan 11, 2013 5:56 am

Just an assumption here, but you could most likely add a bit more logic and test not only if the players Y is > than the trees Y, but also if they are overlapping. If the players is above the tree base and they are overlapping, set the player animation to whichever one you want. Similar to how you normally change animations.

The platform tutorial has good examples of changing animations based on events.BluePhaze2013-01-11 05:57:13
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Sun Jan 13, 2013 4:14 pm

but i don't use platform behviour, i don't see how to assign animation walk left right down
B
6
Posts: 28
Reputation: 831

Post » Sun Jan 13, 2013 4:24 pm

@jetsetwilly - try looking here: http://www.scirra.com/forum/topic61844.html

It's the simplest way I've found.
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Sun Jan 13, 2013 5:25 pm

ok thank you that's just what i need

anglediff and angletracker are expressions?
i test it now
B
6
Posts: 28
Reputation: 831

Post » Sun Jan 13, 2013 5:47 pm

not working i don't see what i put in the condition everyticks( i don't use bullet behaviour)   sh*t not so simple in fact
B
6
Posts: 28
Reputation: 831


Return to How do I....?

Who is online

Users browsing this forum: jeffige and 0 guests