FUnny enough, seems I found near correct equation for rope pin movement:
https://dl.dropboxusercontent.com/u/659 ... _rope.capx
Still not perfect needs some work though.
alextro
thanks a lot
need more work the segment doesnt follow the snake as good
but thanks
Kinda working with simple approach and without pin behaviour. You can modify the rest to match your needs
source file: https://dl.dropboxusercontent.com/u/659 ... snake.capx
Kinda working with simple approach and without pin behaviour. You can modify the rest to match your needs source file: https://dl.dropboxusercontent.com/u/659 ... snake.capx
thats okay
but what part of code that make segment follow the head of the snake ?
You mean the straw like segment or the rounded one? The basic idea is to utilize spawning "dots" as head's traces.
thanks for you help
how ever i used same method but the mouvement of the segment is bad
can you take a look on my new .capx https://www.dropbox.com/s/ay4xwgvyecgat ... 3.rar?dl=0
or any others can help me please ?
up bump
any suggestion?
that not work with pin behaviour !!!!
chrisbrobs
Develop games in your browser. Powerful, performant & highly capable.
Done some workaround of your file. Not as smooth as you may expect, due to obstacle pattern concern.
https://dl.dropboxusercontent.com/u/659 ... e_rev.capx
I was able to make the segments follow correctly, but it will not be suits the game you want to achieve.
I would use an array to record the head's position and angle, and use that data to set the body segments.
example
All thanks a lot for your contribution
zatyka
but this was great