Question about frame width and ceil.

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I have some question about frame width and ceil function
    Frame width:1920
    Active object A width:256
    So Ceil(Frame Width / OWidth( "Active A" )) 1920/256 = 7.5
    So I think 8 is right, But this value from debugger always 7.
    Why ? Help me please. I think I missed something.

  • 1920/256 is integer division right? so that makes 7 since integer division cuts off the decimal. Therefore it becomes Ceil(7) which is just 7. It's annoying order of operation.

    In order to solve this problem, you must do Ceil(1920.0 / 256). Force it to do a float division. As long as 1 float is in a calculation, it will become a float.

    Everytime I ask for help in the forums, I must help another member in the forums.<3

    Edited 5 times, last by lootercuster (July 14, 2016 at 5:14 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!