Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] Floating text

Discussion in 'World Editor Help Zone' started by deathismyfriend, Apr 24, 2013.

  1. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    What is the max amount of floating texts one can have in there map ? thanks for any answers

    solved sry about that
     
    Last edited: Apr 24, 2013
  2. Tirlititi

    Tirlititi

    Joined:
    Jul 11, 2010
    Messages:
    396
    Resources:
    12
    Models:
    6
    Maps:
    2
    Spells:
    3
    JASS:
    1
    Resources:
    12
    100 per player at the same time (the stack goes from 99 to 0).

    If some of the floating texts are not to be displayed to all players, you may want to create them locally (using
    if GetLocalPlayer()==YourPlayer then
    or whatever). They won't mess up with the handle stack since they use a separated ID stack, but that means you shouldn't use their IDs in hashtables for instance.

    If you only show/hide floating texts instead of creating them locally, it will do strictly 100 at the same time.
     
  3. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    ya i thought it was 100 i changed this one to solved in first post.

    i do have a question tho how do u make floating text fade away as i cant get the GUI action to work for it?
     
    Last edited: Apr 24, 2013
  4. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Disable permanence, set lifespan and fading age.
     
  5. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    this is what im doing

    yes it leaks ik this.

    • Actions
      • Floating Text - Create floating text that reads (String(tempInt)) at (Center of (Playable map area)) with Z offset 0.00, using font size 50.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Set text[tempInt] = (Last created floating text)
      • Floating Text - Change text[tempInt]: Disable permanence
      • Floating Text - Set the velocity of text[tempInt] to 64.00 towards 90.00 degrees
      • Floating Text - Change the fading age of text[tempInt] to 1.00 seconds
     
  6. Tirlititi

    Tirlititi

    Joined:
    Jul 11, 2010
    Messages:
    396
    Resources:
    12
    Models:
    6
    Maps:
    2
    Spells:
    3
    JASS:
    1
    Resources:
    12
    You forgot the lifespan.
    The fading age is the time after which the text begins to disappear, but it also needs to know the lifespan, the time at which the text is cleared.
     
  7. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    wow i thought i had it in there lol thx haha.

    thanks maker