How do I The enemy shield and put spikes and kills

Get help using Construct 2

Post » Sun May 01, 2016 2:17 pm

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
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416

Post » Sun May 01, 2016 2:34 pm

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.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sun May 01, 2016 4:06 pm

keroberos wrote: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
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416

Post » Sun May 01, 2016 4:39 pm

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

https://www.youtube.com/watch?v=0XrFar8vpxQ

see 2:45.
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416

Post » Sun May 01, 2016 4:48 pm

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 got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sun May 01, 2016 10:51 pm

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
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416

Post » Sun May 01, 2016 10:55 pm

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
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416

Post » Mon May 02, 2016 2:57 am

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 :


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?

I have seen his game Project Dimentia Bodhisattva I really liked good job

Thank you. :)
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Mon May 02, 2016 8:10 am

thank you very much for your patience think I understand what I am doing. Still if anyone could put me capx would be great
Image
B
17
S
3
G
1
Posts: 10
Reputation: 1,416


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 54 guests