Picking a specific instance.

0 favourites
  • 5 posts
  • 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.

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

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Too drunk to solve this. If no one else does by tomorrow night, I'll check the capx out ;)

  • 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.

  • Here are few changes: 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.

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)