Classic Snake Movement

0 favourites
  • 5 posts
From the Asset Store
Run and Jump in 3 Dimensions! Take your platformer to the next level!
  • Hey everybody, I was wondering what approach I should take for a classic snake movement in construct 2. Here's what I have so far.

    <img src="" border="0" />

    It works, but it's only a little off. For some reason, I feel like there's a better solution out there. So, can anyone provide what I should be doing instead or recommend anything I can do to improve my solution?

    Keep in mind, I'm not looking for smooth movement. I would like to stick to the classic's version of the snake movement.

    Please and thank you :)!

  • I'm new in C2, but i guess you can jump the part of test with the direction variable, when you take a click and them you set the variable to be analized in the next loop, maybe when you receive the keyboard input you can just turn the snake to the right direction, i hope it can help and no give you a better smooth movement.


    sorry for bad english

  • Well, what feels off about it? What don't you like?

  • Well, what feels off about it? What don't you like?

    When I pressed a key the snake would move a little late and not on the mark. I got it fixed though.

    However, I have a new problem now. When the snake eats the apple, then how do I create the body and then have it follow the snake?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont know if it is late for me to respond, but here is my solution.

    on head you put bullet behavior and if you want wrap behavior.

    Insert keyboard.

    Now on event sheet on up arrow > head rotate 270 degrees toward 270... and so on :D ( i cant upload img yet)

    It is simple and it works

    Put global variable for speed so you can change it as the game is geting harder.

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