User Tag List

Results 1 to 3 of 3

Thread: money counter

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Location
    San Francisco, USA
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    money counter

    I'm developing an rpg/sim game using MF2. my current problem is making a money counter that tracks how much money the player has. the counter/score object won't handle decimals (I think) and I don't see how I can add a "$" in front of the numbers.

    I want the expression to be like this: when object is destroyed add $10.50 to money counter.

  2. #2
    No Products Registered

    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: money counter

    The counter object can handle decimals just fine.
    And you could ad the $ sign through an extra text/image bit in the frame.
    Alternativly you could merge the info from the "money"counter with the $ sign in a string/text object.

  3. #3
    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)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: money counter

    Just to clarify what Langol said:

    [events]
    * when object is destroyed
    - Counter: add 10.50 to Counter

    * always
    - String: set alterable string to Str$(value( "Counter" ))+"$"
    [/events]

    I very seldom display a value through counters, as I have alot more control when using strings

Similar Threads

  1. Is there money to be made here?
    By DistantJ in forum SWF/Flash Export Module Version 2.0
    Replies: 16
    Last Post: 6th April 2012, 01:37 AM
  2. I'll pay money for the following
    By BrashMonkey in forum Extension Development
    Replies: 21
    Last Post: 5th February 2009, 09:58 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
  •