How do I make strong ragdoll

Get help using Construct 2

Post » Wed Apr 19, 2017 12:52 pm

SoldjahBoy wrote:
mahdy wrote:
SoldjahBoy wrote:How are you creating the ragdoll parts and joints? It could be a case of the code not processing all in the same tick, and therefore the joints aren't positioning correctly (because your ragdoll is spawned already in motion?). You can try spawning and creating the joints for your ragdoll using a Function, which should give a more solid result. The function will process the creation and pinning of the ragdoll itself in a more precise way, since all of the function code *should* run all at the same tick.

~Sol


I have to thank you buddy
I solved the problem because of you i used the wait action before i apply the revolute joint because as you said its was spawned in motion

I really appreciate your help tnx.


No problem at all! :)

~Sol





Can you help me with this

https://app.box.com/s/2qrcwkdjhx5mjl8k9jit95b8fmkgh07h

its a game the player have to destroy all ragdolls in it
the problem is i dont know how to make the player lose when he miss a ragdoll
(destroying just one part of the ragdoll is ok and doesnt make you lose ).
B
5
Posts: 12
Reputation: 249

Post » Thu Apr 20, 2017 4:33 am

Hi @mahdy

I think you can just check for the Y position of the ragdoll... if it falls below the bottom of the screen then they player has "missed" it. You will probably want to make some instance variable for the ragdoll, so when the player DOES hit it, you can set a variable to "true" or something like that.

If the ragdoll Y position is greater than layout.height+ragdoll.height AND the variable equals "false" (or player hasn't touched it) then you can count this as "missed".

Hopefully this will give you some helpful method to try :)

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Tue Apr 25, 2017 10:17 am

SoldjahBoy wrote:Hi @mahdy

I think you can just check for the Y position of the ragdoll... if it falls below the bottom of the screen then they player has "missed" it. You will probably want to make some instance variable for the ragdoll, so when the player DOES hit it, you can set a variable to "true" or something like that.

If the ragdoll Y position is greater than layout.height+ragdoll.height AND the variable equals "false" (or player hasn't touched it) then you can count this as "missed".

Hopefully this will give you some helpful method to try :)

~Sol


That was a really perfect advise my friend and it helped me in another case also. I really appreciate it thanks a lot.
B
5
Posts: 12
Reputation: 249

Post » Thu Apr 27, 2017 8:36 am

No problem :) Glad it worked!

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Previous

Return to How do I....?

Who is online

Users browsing this forum: worm1 and 18 guests