User Tag List

Results 1 to 4 of 4

Thread: Question regarding Mod.

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question regarding Mod.

    I don't fully understand how Mod works. I could really use some help so I know how to fully implement it in the future.

    As of now, I have a game with a large frame, and a virtual frame sized 576 by 256.

    I have an Always statement running that does this.

    Center display at Y=Y( "Active" )-Y( "Active" ) mod 256+128
    Center display at X=Y( "Active" )-Y( "Active" ) mod 256+128

    This makes the screen pan at one screen intervals, instead of scrolling.

    IT works, and I'm happy that it does. But, WHY does it work. My math with mod is a bit fuzzy.

    Any help you can give me would be appreciated. Thanks.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Question regarding Mod.

    Mod = modulo (returns the remainder of a division)
    http://en.wikipedia.org/wiki/Modulo_operation
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding Mod.

    check out http://en.wikipedia.org/wiki/Modular_arithmetic

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding Mod.

    whew. Figured it out.

    I wasn't sure what to do when mod returned something less than one.

    It just returns the number. NOW I uderstand the equation fully.

    Had to make a little program that plugged in MOD and gave answers for it.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •