Picking a specific instance.

Get help using Construct 2

Post » Sun Jan 13, 2013 3:58 am

I'm trying to create this 4 legged thing that moves one leg at a time. The leg that is supposed to be moving is determined by LegState. After the leg reaches a certain angle (Body.Angle+LegAngle) LegState is supposed to increment by one and allow the next leg to move but I can't seem to get it to work.

Everything I've tried either immediately increments by one and stops or increments every tick. What am I missing?

I've linked my capx.

https://dl.dropbox.com/u/88228205/Crawl.capx

Thanks.
B
45
S
13
G
7
Posts: 34
Reputation: 5,919

Post » Sun Jan 13, 2013 5:50 am

Too drunk to solve this. If no one else does by tomorrow night, I'll check the capx out ;)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sun Jan 13, 2013 5:55 am

Haha! Thanks.

I am still learning the "syntax" for C2. I've read all the manual event pages and searched the forums and tutorials but I'm still missing something....obviously.
whatever232013-01-13 05:56:47
B
45
S
13
G
7
Posts: 34
Reputation: 5,919

Post » Sun Jan 13, 2013 9:00 am

Here are few changes: http://dl.dropbox.com/u/19921470/Crawl.capx

You missed picking which is big part of doing things in construct, I added a simple example which hopefully lightens up it a bit. Also added the pin behavior actions.

The FAQ has good stuff on picking and pretty much everything else as well, it seems like you got good handle on doing things so after reading a bit more on picking and some more C2 specific mechanics I doubt you'll have any problems :)

Edit : Another good thing you should take a look at is containers. They would be useful for legs at least.vee412013-01-13 11:14:03
B
24
S
8
G
7
Posts: 756
Reputation: 7,202

Post » Sun Jan 13, 2013 6:09 pm

Ahhh. I knew it was going to be something easy. I don't know how I missed the Pick condition. For some reason I was assuming that the comparison condition automatically picked the instance(s) that met those conditions.

This should get me going. Once I get this figured out I'll start working on how to incorporate the legs into containers.

Thank you for your help.
B
45
S
13
G
7
Posts: 34
Reputation: 5,919


Return to How do I....?

Who is online

Users browsing this forum: mjj1990 and 8 guests