How do I throw an enemy

Get help using Construct 2

Post » Tue Mar 17, 2015 3:02 pm

Hello, how can i throw an enemy?
B
6
Posts: 35
Reputation: 326

Post » Tue Mar 17, 2015 3:29 pm

Hi,
You can add Physics behaviour on enemy and apply force
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Tue Mar 17, 2015 6:55 pm

It doesn't work. It's not a platformer, it's a beat em up and it's working strange..
B
6
Posts: 35
Reputation: 326

Post » Tue Mar 17, 2015 7:37 pm

well i need more details to help you, do you have a sample capx?
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Tue Mar 17, 2015 7:40 pm

Yes. i made something but it doesn't work properly...
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 35
Reputation: 326

Post » Tue Mar 17, 2015 8:13 pm

Can you tell me which part of code do you want to be improved?
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Tue Mar 17, 2015 8:19 pm

There's always the physics behavior however it really does depend on what you want to do. If its like mario - pickup opponent then throw opponent. I would add a variable to that opponent to switch from picked up or not. And "hide him" then have the player "shoot" the opponent as a bullet and when it hits or lands or whatever have the opponent "re appear" on the location of the bullet and destroy the bullet. There's quite a few other ways you could do that. Also it can get a bit tricky on a fighting game for example you would have to disable the opponent/player controls so they can be tossed around defenseless. Either way you have to think on the whole process step by step. Good luck!
Freefall Bird
B
39
S
8
G
5
Posts: 271
Reputation: 5,453

Post » Wed Mar 18, 2015 4:24 am

beufreecasse wrote:Can you tell me which part of code do you want to be improved?

Well, the part with the enemy Ai.
B
6
Posts: 35
Reputation: 326


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest