User Tag List

Results 1 to 8 of 8

Thread: Warning about destroying not finishing

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning about destroying not finishing

    In my project, I was using the different anim slots as a quick &amp; easy way to make multiple ship and weapon types in one object. Problem is, I was using the first 5 or 6 anim slots, including the "disappearing" one. Turns out that one is played automatically when you're destroyed. This works fine as long as you're not already *in* that anim when you're destroyed. By 5th ship type (and all it's projectiles and shield fx, etc.) were using that slot normally... so when it tried to destroy itself, it'd try to play that anim and, I assume, fail because it was already *in* that anim and, thus, would never auto-remove itself at the end of the anim. The result was almost a hundred objects sitting around in the world (invisible since I made the last frame of that anim hard to see) and slowing the game to a standstill... <img src="/center/images/graemlins/smile.gif" alt="" />

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning about destroying not finishing

    In my project, I was using the different anim slots as a quick &amp; easy way to make multiple ship and weapon types in one object. Problem is, I was using the first 5 or 6 anim slots, including the "disappearing" one. Turns out that one is played automatically when you're destroyed. This works fine as long as you're not already *in* that anim when you're destroyed. By 5th ship type (and all it's projectiles and shield fx, etc.) were using that slot normally... so when it tried to destroy itself, it'd try to play that anim and, I assume, fail because it was already *in* that anim and, thus, would never auto-remove itself at the end of the anim. The result was almost a hundred objects sitting around in the world (invisible since I made the last frame of that anim hard to see) and slowing the game to a standstill... <img src="/center/images/graemlins/smile.gif" alt="" />

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Warning about destroying not finishing

    Instead of using the existing animations (stopped,walking,ect,ect..) you should just add some user-animations. You can add as many as you want and rename them. That way you can have hundreds of weapon types in one object without using the MMF controlled ones. <img src="/center/images/graemlins/smile.gif" alt="" />

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Warning about destroying not finishing

    Instead of using the existing animations (stopped,walking,ect,ect..) you should just add some user-animations. You can add as many as you want and rename them. That way you can have hundreds of weapon types in one object without using the MMF controlled ones. <img src="/center/images/graemlins/smile.gif" alt="" />

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Posts
    269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Warning about destroying not finishing

    That's also real handy for particle effects, just make a Disappearing animation and nothing else, then all you have to do is create the object and it will destroy itself immediatley, no lines of code.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Posts
    269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Warning about destroying not finishing

    That's also real handy for particle effects, just make a Disappearing animation and nothing else, then all you have to do is create the object and it will destroy itself immediatley, no lines of code.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Warning about destroying not finishing

    []Instead of using the existing animations (stopped,walking,ect,ect..) you should just add some user-animations. You can add as many as you want and rename them. That way you can have hundreds of weapon types in one object without using the MMF controlled ones. <img src="/center/images/graemlins/smile.gif" alt="" /> [/]

    Hehe, yeah, that's what I ended up doing - I'm really still learning all the ins and outs and particulars of the dev tool. It's pretty powerful and very impressive. Definitely a great tool for making games quickly! I have a pretty functional Space Wars/Star Control homage going in about a week and a half...

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Location
    Madison, WI, USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Warning about destroying not finishing

    []Instead of using the existing animations (stopped,walking,ect,ect..) you should just add some user-animations. You can add as many as you want and rename them. That way you can have hundreds of weapon types in one object without using the MMF controlled ones. <img src="/center/images/graemlins/smile.gif" alt="" /> [/]

    Hehe, yeah, that's what I ended up doing - I'm really still learning all the ins and outs and particulars of the dev tool. It's pretty powerful and very impressive. Definitely a great tool for making games quickly! I have a pretty functional Space Wars/Star Control homage going in about a week and a half...

Similar Threads

  1. Couple of questions before finishing with my game
    By Redsquirrel in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 11th February 2013, 10:04 PM
  2. Warning!
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd November 2012, 04:16 PM
  3. MOCHI WARNING
    By Eliyahu in forum SWF/Flash Export Module Version 2.0
    Replies: 38
    Last Post: 7th September 2010, 08:06 PM
  4. Finishing The Game!
    By Jack_Mcphee in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 9th December 2006, 08:30 AM

Posting Permissions

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