How to destroy enemy by the player jumping over its head ?

Get help using Construct 2

Post » Fri Jun 13, 2014 8:44 am

hi,
search the forum befor post
already posted here
do it easy by adding:

Event:
YourSprite..> falling (on falling)

Action:
YouSprite...>Destroy
2D Game GUI Designer
B
12
S
4
G
3
Posts: 130
Reputation: 3,778


Post » Fri Jun 13, 2014 11:53 am

Thanks
I need your support! Shape Swapper isn't complete without Bitcoin donations. Donate --->1QETAa8Z2swZ1sHZRbSk4mv5MvpUTi1wEi
B
9
S
3
Posts: 40
Reputation: 868

Post » Sat Jun 14, 2014 2:24 am

I'm offended, thanks
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sat Jun 14, 2014 3:41 am

garish wrote:To create a mario like effect, I want to add a bounce off effect when the player touches the enemy's head. I tried setting simulate jump to the player when it touches the pinned sprite on the enemy's head, but that is not making the player jump :(

Any solution?


The jump built in works only if the player is on the ground, to do a bounce, use instead:

Set vector Y (set it to a negative value, for exemple, the basic jump is equivalent to set vector y to -self.platform.JumpStrength)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat Jun 14, 2014 5:49 pm

Message: garish is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Manarsoft wrote:hi,
search the forum befor post
already posted here
do it easy by adding:

Event:
YourSprite..> falling (on falling)

Action:
YouSprite...>Destroy


I've searched well before posting the question and the solution you mentioned didn't work when the player touches the enemies sideways while falling. But Thanks : )

Joannesalfa wrote:I'm offended, thanks


Offended by me? I'm sorry buddy, but I have said nothing bad or rude. Have I ?
Sorry, anyways.

Lordshiva1948 wrote:you might find your answer in this tutorial


Thanks, insightful article (y)

Aphrodite wrote:The jump built in works only if the player is on the ground, to do a bounce, use instead:

Set vector Y (set it to a negative value, for exemple, the basic jump is equivalent to set vector y to -self.platform.JumpStrength)


Thanks a ton! Worked perfectly :)
B
5
Posts: 16
Reputation: 261

Post » Tue Jun 17, 2014 4:11 pm

lol
didn't read the 2nd page :lol:
B
8
S
2
Posts: 203
Reputation: 1,169

Previous

Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726 and 35 guests