Snake plant enemy

0 favourites
  • 5 posts
From the Asset Store
25 high-quality predatory plants. This asset is perfect for a side scrolling game, or even a turn based RPG type game.
  • Hello there!

    I'm actually working on an enemy who's kind like the ones in Castlevania SotN:

    https://www.spriters-resource.com/resources/sheet_icons/53/55902.png

    My main problem is to link my enemy to the base object on the ground. Actually all the body parts are pined to each other to make a snake body effect.

    Also the movements are created with the head but it's not very smooth…

    So can check the c3p file I have done for now:

    dropbox.com/s/vakmvlaolh4caol/EnemyTest.c3p

    If anyone has a solution it will be great!

    (Sorry for the enemy design, it's a placeholder actually but I will make a nice one soon)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I mean it looks interesting and all that but generally this would just be one sprite with an animation rather than lots of sprites pinned together in a rope style, is there a need to do that? The bones are going to be hit separately in the game? If you need to link the other objects to the base in some way you can assign them a variable with matching values, or you can add the base and head to a container where they are automatically linked and created but this might not be useful if you are creating extra objects and you want them to be destroyed separately.

  • Yes in fact I usually do it with sprites animation but I choose this way to make it unpredictable and make its movements randomized. The head is the only hit point.

    I'm curious about your container idea, how do you link the head and base?

  • A container is where individual objects are linked as one object, so when you create the base, it creates everything else too. Then when you reference the objects it knows automatically which base or head is linked to it because they are in a container. Only possible problem is if you destroy one of the objects then they are all destroyed. Even if it were to be unpredictable I would go with several animations that you can choose at random, it has to be easier than trying to animate these connected sprites.

  • Ok I see, it can be useful, thanks.

    But still I don't know to pin the last bone (SnakeBones.IID.5) to the base. That's my main problem actually.

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