User Tag List

Results 1 to 7 of 7

Thread: How do I spawn my ragdoll upon enemy dying?

  1. #1
    No Products Registered

    Join Date
    Jun 2020
    Posts
    9
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How do I spawn my ragdoll upon enemy dying?

    I am playing around with a simple topdown shooter in the vain of the classical arcade game Berzerk, and there is one thing I can't figure out how to do:

    When "bullet" collides with "enemy", "bullet" and "enemy" is destroyed (I have a ragdoll outside the gamescreen that I would like to create upon the collision between "bullet" and "enemy", my issue is that I do not know how to do this. When I create the parts upon the event, it just falls apart. Is there any way to spawn a clone of the already existing ragdoll?

  2. #2
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,726
    Mentioned
    64 Post(s)
    Tagged
    3 Thread(s)
    Hi @billorama ,

    the ragdoll object you say you wish to clone, how is this held together?

  3. #3
    No Products Registered

    Join Date
    Jun 2020
    Posts
    9
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It is constructed in this manner: Body, upper arms, lower arms, thighs, and chins, the parts are linked together with the physics - static engine, each part put as revolute joint linked to the corresponding bodyparts, ie upper arm is connected to body, lower arm connected to upper arm etc.

  4. #4
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,726
    Mentioned
    64 Post(s)
    Tagged
    3 Thread(s)
    Thanks for that. OK well without these linkages Fusion obviously has no information to bind objects together and linkages and joints are between specific instances of objects. My recommendation is that you create a fastloop which builds (insert new object) and links a brand new ragdoll at a coordinate of your choosing... then whenever you need one you can call the fastloop and have Fusion generate it for you.

  5. #5
    No Products Registered

    Join Date
    Jun 2020
    Posts
    9
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ah, okay! That is logical, thank you very much!

  6. #6
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,726
    Mentioned
    64 Post(s)
    Tagged
    3 Thread(s)
    You're welcome, good luck with it

  7. #7
    No Products Registered

    Join Date
    Jun 2020
    Posts
    9
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Alright, it spawns perfectly now.

    Now, I am a bit confused about the physics regarding friction and force. When the ragdoll spawns I apply a force of 5, and have friction set to 3, in my mind it should travel a bit before stopping. But how it works is that the ragdoll stays for a little while where it spawns, before picking up speed and travels to infinity (And beyond?) Any thoughts?

Similar Threads

  1. Replies: 0
    Last Post: 20th January 2017, 12:32 PM
  2. Replies: 3
    Last Post: 27th December 2016, 09:05 AM
  3. Count does not work with enemy spawn.
    By cathy_1966 in forum Fusion 2.5
    Replies: 3
    Last Post: 19th December 2016, 04:26 AM
  4. enemy spawn problem
    By thinlikenate in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2010, 09:15 AM
  5. Enemy spawn saving with string parsing.
    By SEELE in forum File Archive
    Replies: 6
    Last Post: 4th May 2008, 07:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •