Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    2.15 Potentially Breaking Changes

    Announcements
    3
    6
    545
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pianofire
      pianofire Fuze Team last edited by pianofire

      Thought it would be useful to have a list of changes in 21.5 that potentially break existing programs.

      Here is a starter:

      1. PROBLEM: Nothing drawn to screen
        REASON: update() no longer sets the draw target back to the framebuffer after setDrawTarget( image )
        FIX: Add setDrawTarget( framebuffer ) after the update() statement if it is not there
      1 Reply Last reply Reply Quote 1
      • Dave
        Dave Fuze Team last edited by pianofire

        1. PROBLEM: Error: Invalid Type
          REASON: With the addition of the Var keyword and the check for invalid types, users who have used "bool" or other invalid types will be getting errors.
          FIX: Change their invalid types to valid ones. As a catch-all, var can be used instead.
        1 Reply Last reply Reply Quote 1
        • pianofire
          pianofire Fuze Team last edited by pianofire

          1. PROBLEM: Variables not being set after calls to functions
            REASON: Variables are now passed to functions by value by default
            FIX: Add the ref keyword in front of the parameter declaration
          1 Reply Last reply Reply Quote 1
          • Dave
            Dave Fuze Team last edited by Dave

            1. PROBLEM: Sprite collision misbehaving
              REASON: shape_box type sprite collision was being incorrectly calculated as being too small - fixed in 2.15.0
              FIX: If setSpriteCollisionShape() is being used, adjust the width and height parameters to be slightly smaller. If only default collision shapes are being used, add setSpriteCollisionShape() with parameters to get the desired shape dimensions.
            1 Reply Last reply Reply Quote 1
            • Dave
              Dave Fuze Team last edited by

              1. PROBLEM: blend mode strangeness
                REASON: Similar to the draw target issue, the update() command used to reset the blend mode back to default. This is no longer the case and blend mode must be
                reset manually
                FIX: Make sure that you change the blend mode back to default using setBlend(blend_mix) after changing it.
              1 Reply Last reply Reply Quote 2
              • vinicity
                vinicity F last edited by

                One thing that has changed that I haven't seen mentioned is that in 2.14, you could call print() (and I think also printAt()) and have text printed to the screen without doing update().

                So this would work:

                print("Hej hopp")
                sleep(100)
                

                In 2.15, this no longer produces any output unless you call update() afterwards.

                FIX: Add a call to update() after using print().

                1 Reply Last reply Reply Quote 2
                • First post
                  Last post