cacotigon's Recent Forum Activity

  • I like the night time effect, is that like a transparent topmost layer with opacity set to 50%? Looking good.

  • rexrainbow: You are the bomb-diggedy. As far as I can tell, it works flawlessly. You should definitely post this up on the plugins sticky. You may even want to post this plugin as an attach to this bug since it might be related, and could help scirra. Thanks again!

    Text Border Bug Post

  • Ack, it gets even worse, even though Chinese fonts are typically a constant fixed-width per character, a lot of my text mixes Chinese with English words, which unfortunately vary for width depending on the letter, so not even counting would work in this case(unless I tried something bat-sh## crazy like figuring out the width per character per font on a one-on-one basis).

  • Intel Centrino

    Windows XP SP3

    Construct 2 80.2

    Firefox 10.0.2

    NOTE: this refers to the Text plugin, *not* the TextBox plugin.

    Text of any kind without spaces does not wrap properly.

    Steps:

    1. Create a small instance of the text plugin

    2. Change font size to 16

    3. Write: '12873895819289112' or any random set of values

    4. Observe that although the values are wrapped properly in the editor, as soon as the project is run, it goes past the boundary and does not wrap.

    Note: Also happen if text is set programmatically

    Example:

    Text Border Capx

    -- cacotigon

  • Details:

    Local variables in other event sheets can create naming conflicts with global variables.

    Specs:

    Intel Centrino

    Construct 80.2 (32-bit)

    Windows XP SP3

    Steps:

    1. Create EventSheet1

    2. Create Group Group1

    3. Create any subevent

    3. Add local variable var1 to Group1

    4. Create EventSheet2

    5. Create global variable Var1

    The name 'var1' is already used in this scope.

    Notes:

    I wouldn't imagine local vars and global vars are supposed to conflict since they have different scopes.

    -- cacotigon

  • Nuts, well, it works in all cases, however, if you put it in a global variable by itself as soon as you save project/exit and reload it, the program sets the value to an empty string.

    However, it seems to remain if used anywhere else, for example, if you had an action that stated: "s" + "<tab>" + "h"

    then it would remain between save/loads.

    Ashley: Do you think scirra could add a quick change such that global variables would support using a tab. The reason that i mention this is that I have a global variable called COL_DELIMITER, which is currently a tab, but may change at a later time. Thus, I would rather avoid hardcoding the delimiter string(tab, newline, character, etc) in the dozens of tokenat/tokencount statements in the code.

    Thanks,

    -- cacotigon

  • That's a great workaround! Seems to work just fine, much appreciated!

  • Would it be possible to add support for special characters other than just newline? Particularly, it would be really nice to be able to use the tab character as a delimiter in tokenat and tokencount. I tried '\t' but it didn't work.

    Thanks,

    -- cacotigon

  • Cassianno: yeah, that's kind of my last resort, since I've got several text controls all with different font sizes. :)

  • Yann:

    I'm not sure, but looking at your implementation, it looks like it would cause problems with sets that contained values which have substrings which match other values, eg:

    1,2,3,4,5,6,7,8,9,10,11

    ex: program picks 1

    set list to replace(list,str(Array.At(loopindex)),"")

    Replace will wipe out the '1' string in '1', '10', and '11'

    A while back when I was working on a text-parser with C2, I encountered a similar problem and ended up having to manually traverse and remove without the replace expression.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • rexrainbow

    can you explain the difference between Hash.At and Hash.Entry expressions? Also, are all key/value pairs stored as strings?

    thanks,

    -- cacotigon

  • Not sure if this would be classified as a bug, but thought it worth mentioning. Most standard form text controls in other programs will wrap asian language text when it hits the end of a text label width, but in Construct 2, the text just continues off the side, this happens because pictographic languages like Chinese/Japanese do not employ spaces between words.

    example picture:

    <img src="http://dl.dropbox.com/u/12667027/Construct%202/TextWrap%20Bug/wrapbug.png" border="0" />

    While I'm obviously hoping that this will be patched sometime in the future, is there something I can do in the meantime to get around this?

    Thanks,

    -- cacotigon

cacotigon's avatar

cacotigon

Member since 10 Mar, 2009

None one is following cacotigon yet!

Connect with cacotigon

Trophy Case

  • 15-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies