How do I create snake-like movement?

0 favourites
  • 8 posts
From the Asset Store
Snake
$9.99 USD
Template for snake, fully documented in comments and video
  • How do I create an snake like enemy similar to

    Subscribe to Construct videos now

    ?

    Also, I want to create something similar to the options from Gradius, but I don't know how to make the options follow the path the player is moving.

    (

    Subscribe to Construct videos now

    a video of Gradius V. The options are the small orange things following the player. Notice the way they follow the player.)

  • There is a slick 'PIN' behavior using the 'rope style' demo in the Construct 2 Demos... perhaps check that out?

    GL!

    -Remy

  • Not entirelly the same as the video since the behavior doesn't work exactly like that one but here it is: Snake Example

  • Sorry, but it wasn't quite what I looking for.

    I want to have it so that when the player moves, the objects following him must follow the same path the player moved.

    For example, if the player moves in a circle or in random directions, the options must strictly follow the exact path he went in.

  • That's what i said it's not exactly like the video. The video is "follow the next" style. I'm not exactly sure how to replicate that. With pin behavior is probably impossible right now.

  • Sorry, I was writing my reply just when you posted yours. :P

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I tried to replicate it but it would require to C2 support something like

    Always

    Foreach Body Ordered

       Pick Body with number 0 : lerp to header

       Pick Body with number 1 : lerp to body with number 0

       Pick Body with number 2 : lerp to body with number 1

       ....

    Or have i missed something ?

  • doin it smoothly would be hard in c2 but the actual following isnt. You give each part an instance var with the id of the part it follows. After the main part moves then you loop thru following parts and set its location to where the part its following just was

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