How do I The enemy shield and put spikes and kills

0 favourites
  • 9 posts
From the Asset Store
Give Sound to the enemies that are part of your game! :)
  • The enemy shield and put spikes and kills

    hello good I would like someone to help me solve this problem

    my game is platform and is to jump and kill enemies from above, but what I want is that when the enemy is in front of you is stop and a shield with peaks place and if you get takes away lives (changing animation) only you can kill from above when you do not see, in this case behind

    if someone helped me would be helpful thanks

  • If I understand you correctly, you have an enemy that has spike shield and player must kill it by stomping it from above?

    Something like this enemy? See 1:20 of this video https://youtu.be/ZJuxdR0KH-s . The enemy with spike at the top?

    Please confirm if this is what you want.

  • If I understand you correctly, you have an enemy that has spike shield and player must kill it by stomping it from above?

    Something like this enemy? See 1:20 of this video https://youtu.be/ZJuxdR0KH-s . The enemy with spike at the top?

    Please confirm if this is what you want.

    if you like, but my enemy would have two options if you have the spear vertically would kill me, but if you have the spear down I will kill him

  • I searched a better video to see what I do, since I'm a little bad spelling

    Subscribe to Construct videos now

    see 2:45.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are several ways you can do this, and this also depends on your sprite images too.

    Do you want to use 2 objects (enemy image and spear image) or 1 object (a single image that has an enemy holding the spear) ?

    Can you show us all frames and images of this particular enemy? This is so we know what kind of events you need.

  • I use the option of an object is a single image that has an enemy holding the spear. I entered your page and I played his game Project Dimentia Bodhisattva I really liked good job

  • I use the option of an object is a single image that has an enemy holding the spear. I have seen his game Project Dimentia Bodhisattva I really liked good job

  • If you have just one image object, you could refer to the animation name currently being played and applied logic accordingly.

    Quote below is a Sprite condition referenced from https://www.scirra.com/manual/115/sprite :

    [quote:h18t4v7u]

    Is playing

    True if a given animation is currently set. Animations are identified by their name (case insensitive).

    For example,

    player collided with enemy:

    > if player.y < enemy.y:

    > > if enemy is playing "isHoldingSpear": player destroy

    > > else : enemy destroy

    > player destroy

    Something like this. You need to make sure the events go into the right "block" too or else this will not work correctly.

    Unfortunately, I am on smartphone and it will be a long while before I can get back to my laptop. Can someone in the forums provide him a capx for the time being?

    [quote:h18t4v7u] I have seen his game Project Dimentia Bodhisattva I really liked good job

    Thank you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • thank you very much for your patience think I understand what I am doing. Still if anyone could put me capx would be great

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