User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Fixed Values?

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

    Re: Fixed Values?

    I think that is pretty hard if you want to do all this at edit-time.

    A way to do it in runtime would be to make a custom 'ID' system. Have a counter or global value that holds the next ID value. When a soldier is created, set his Value A to the value of the counter/global value and then increase it by 1. That way new soldiers would get a new unique ID and they would never change. At the start of the frame value 0 is spread in their Value A and the counter/global value is set to the number of soldiers.

    Btw, can't you make some detectors you also place in the frame editor? At the start of the fram they could give the soldiers the unique ID you want them to have and then destroy them. Then you can destory and create as many soldiers as you want, you just have to make a detector that gives them the value of your choice.

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

    Re: Fixed Values?

    I think that is pretty hard if you want to do all this at edit-time.

    A way to do it in runtime would be to make a custom 'ID' system. Have a counter or global value that holds the next ID value. When a soldier is created, set his Value A to the value of the counter/global value and then increase it by 1. That way new soldiers would get a new unique ID and they would never change. At the start of the frame value 0 is spread in their Value A and the counter/global value is set to the number of soldiers.

    Btw, can't you make some detectors you also place in the frame editor? At the start of the fram they could give the soldiers the unique ID you want them to have and then destroy them. Then you can destory and create as many soldiers as you want, you just have to make a detector that gives them the value of your choice.

  3. #13
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    That custom ID system is exactly the one I use in my main projects. I don't usually work in the frame editor at edit-time but prefer to create all the objects at run-time, so if I create a man, I say to the man 'Man, you are number 1. And you shall always be, number 1' and send him on his way <img src="/center/images/graemlins/wink.gif" alt="" />

    I have a strict policy against detectors but it sounds like a good idea so I might bend the rules if I ever work on an edit-time project again, so thanks!

  4. #14
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    That custom ID system is exactly the one I use in my main projects. I don't usually work in the frame editor at edit-time but prefer to create all the objects at run-time, so if I create a man, I say to the man 'Man, you are number 1. And you shall always be, number 1' and send him on his way <img src="/center/images/graemlins/wink.gif" alt="" />

    I have a strict policy against detectors but it sounds like a good idea so I might bend the rules if I ever work on an edit-time project again, so thanks!

  5. #15
    No Products Registered

    Join Date
    Jul 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    Why on Earth would you have a strict policy against detectors?

  6. #16
    No Products Registered

    Join Date
    Jul 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    Why on Earth would you have a strict policy against detectors?

  7. #17
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    Heh, everyone has their own style of coding. If something can be done without detectors then I prefer to take that route to keep things 'clean', but if it's easier/more efficient to use detectors then meh. As long as it works.

  8. #18
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fixed Values?

    Heh, everyone has their own style of coding. If something can be done without detectors then I prefer to take that route to keep things 'clean', but if it's easier/more efficient to use detectors then meh. As long as it works.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Fixed values?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd June 2012, 06:52 PM
  2. Fixed Values
    By Ganryu in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th November 2008, 09:52 PM
  3. What are fixed values?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd November 2008, 11:15 PM
  4. Confused on fixed values
    By Gamerdude in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th July 2007, 04:51 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
  •