User Tag List

Results 1 to 9 of 9

Thread: Shadows following monster at creation.

  1. #1
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shadows following monster at creation.

    So I don't understand spreaded values or how they work or even how to get them to work, but I have a feeling I'll need them to get what I want done to work.

    I got a game with a monster that spawns with a shadow and also an invisible object around it supposed to represent the monster's "aggro" level. The shadow and invisible object follow the monster around at all times. Now, the problem comes for when I want more than one monster to appear. At creation, the shadow and invisible object appears on the new monster but causes the shadow and indicator on the old monster to suddenly stop following and just sit there. I have a feeling it's similar to how I've seen people get tank turrets to work on here, even though I've yet to figure that out either.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    Shadows are easy, just make sure you always have the same number as monsters and do:
    Always:
    Set position of shadow to 0,0 from monster
    This will match shadows with monsters pretty much at random, but every monster will get one. If they need to be animated to match the monster or have the direction match the monster, do it in the same event, like this:
    Always:
    Set position of shadow to 0,0 from monster
    Set direction of shadow to direction("monster")
    Set animation of shadow to current animation("monster")
    Set animation frame of shadow to current anim frame("monster")
    --etc
    Note that I don't have MMF to hand so the above expressions are likely to be wrong.

    Someone else will no doubt explain spreading values and looping individual objects.

  3. #3
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    Oh, those work perfectly fine with one monster needing a shadow. But multiple ones, sometimes it'll stack two shadows on one monster while another will be shadowless. I'm just looking for like a permanent, fool proof way to get shadows and invisible objects to follow the monsters they're supposed to. ><

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    Create an alterable value in both the monsters and the shadows, call it ID or something similar.

    Then, spread 0 in both of those values. This will give all the monsters a unique number, the first one 0, then second one 1, the third one 2, etc.

    Now 'always' start a loop. Do the loop like this:

    On 'loop'
    +Alt value of monster = loopindex
    +Alt value of shadow = alt value of monster
    Action: Set shadow to position of monster

    If the monsters are to be killed, just 'always' spread the value before the loop runs.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    Well, I just put in that code, and it didn't work at all. x.x

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    I'll upload a demo file of my way when I get home in 7-8 hours.

  7. #7
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    Alright, neat. Thanks for the help. It'll give me time to crash and then be able to think on this with a clearer mind. =)

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=109013#Post1090 13

    That example displays the exact technique i described above, you must've copied it wrong :P

  9. #9
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shadows following monster at creation.

    AWESOME! Yay! It works! I had to put in the "Start loop 'number of objects' times." That's what I missed. =)

    Thanks bunches! Now all I have to do is get them to act independantly.

Similar Threads

  1. Monster Maths available in IOS app store :)
    By aenever in forum iOS Released Games & Apps
    Replies: 1
    Last Post: 11th December 2013, 07:26 AM
  2. Making a tentacle monster? (octopus)
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th October 2012, 07:29 PM
  3. Sending monster positions
    By Hydra in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 5th October 2012, 03:07 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
  •