User Tag List

Results 1 to 3 of 3

Thread: Enemy Scaling Issue

  1. #1
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy Scaling Issue

    I'm trying to create an event where every time a "boss" is hit, it shrinks a little in size.

    I want to hit the enemy 142 times, and on the 142nd shot he'll be dead. I've set it up like this:


    1.)collision between "bullet" and "boss"

    -add 1 to alterable value "H" on "boss"
    -Set scale to (142-(Alterable Value H( "boss" )))/(142)
    -destroy "bullet"


    2.)When alterable value "H" of "boss" equals 142

    -destroy "boss"
    -jump to frame "w/e"


    Now I would think that the scale should work like that, because 1.0 is the normal scale (100%) and
    then every decimal below that is just a lower percentage. So if I hit the "boss" 32 times, the decimal
    would be 0.775 (77.5%), which should shrink the "boss" down to 77.5% of its' normal size. But when I hit
    the boss with the bullet, the "boss" just goes invisible and still does the rest of what he is supposed to do.


    Am I doing something wrong?
    Is there another way to do this?
    Can you do this at all?

    Thanks if you help me out.

    ~Squibs

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy Scaling Issue

    I'm guessing it's a problem with the result of your formula being rounded down to "0".

    Try this:
    - Set scale to (142-(Alterable Value H( "boss" )))/(142.0)
    (note the ".0" at the end)

  3. #3
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy Scaling Issue

    Yep that was it MuddyMole, thanks a lot. I appreciate it.

    ~Squibs.

Similar Threads

  1. Enemy kickback issue
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th October 2013, 11:02 PM
  2. Counter updating issue or code issue?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th March 2013, 01:48 PM
  3. Scaling and Moving Issue
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 23rd October 2012, 10:42 PM
  4. Strange thing: If Enemy Alterable Value A = Enemy Alterable Value B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th March 2012, 05:29 PM
  5. Issue with enemy AI
    By camelman in forum File Archive
    Replies: 4
    Last Post: 15th January 2010, 07:08 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
  •