We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Can Morph Factor values deduct, add, etc., each other?

Home Forums Puzzles Can Morph Factor values deduct, add, etc., each other?

  • This topic has 6 replies, 2 voices, and was last updated 2 days ago by c4cc.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #79607
    c4cc
    Participant

    I’m trying to create an object’s Morph Factor (B) which value is limited by that of another object’s morph factor (A). Both A and B values can change depending whether they’re near certain objects. I need to get the difference between A and B to determine the limits of B’s morph factor.

    My puzzle’s not working:

    ol4x1

    #79608
    c4cc
    Participant

    2nd attempt, still no results

    ol4x1

    #79611
    xeon
    Customer

    You will need to validate that the conditions of your logic are actually occurring?

    I suggest adding some simple print to console statements for each condition so you can validate if the conditions you are testing are firing as expected.

    Values from the getmorph puzzle is a “number” so you can do what ever math you want to it and stick it back into a setmorph puzzle.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #79612
    c4cc
    Participant

    I tried it on a similar get morph/set morph puzzle set, and it works

    ol4x1

    But what I’m trying to do here is to prevent one morph factor value to exceed another’s

    #79613
    xeon
    Customer

    You may want to try using the Clamp puzzle. If you have two morph values A and B and B is to always be less than A and assuming they have the same morph value ranges (0 to 1) then you can just use the clamp puzzle to ensure the B morph value is less than the A value minus. 0.1 but will allow it to be any value between 0 and .9.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #79615
    c4cc
    Participant

    Could you tell me where I got clamp wrong? What I’m trying to do is an upgradeable life bar, like in the Megaman (X) games

    ol4x1

    • This reply was modified 2 days, 5 hours ago by c4cc.
    #79620
    c4cc
    Participant

    Here, Morph Factor B value can be only be increased After Morph Factor A’s is increased. I want to be able to increase Morph Factor B’s value if it’s below a certain level despite Morph factor A being untouched.

    ol4x1

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.