[Behavior] scrolling (for text/sprite font plugin)

  • Update

    • Fix bug.
    • Now "action:set content" will scroll to the first page automatically. Hope it will not break any capx.
  • rexrainbow I'm having a problem with the "newline" command. if I append <font color=blue>"text"&newline</font> to a text with the normal command in the text object, it will append the text and add a new line, but when using the append command in your plugin, it appends the text but it doesnt add a new line. It only adds a newline when the text reaches the edge of the text object. am I missing something or it is something you would need to add?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sry, my mistake. It works like a charm, I made a mistake when I tried it before.

  • Hello. I'd like to make touch scroll like it works on Android and iOS. But to make it I need additional functions. Can you add it?

    I want to make the scrolling like this: sendspace.com/file/feye7v <img src="smileys/smiley1.gif" border="0" align="middle" />

  • , thanks so much for adding this behavior! Worked perfectly on an informational app I've been working on.

    MotoR, you could try out septeven's wonderful iScroll plugin for touch scroll functions.

  • But iScroll is for text lines only. I want the user to scroll a text or a html-text. There is no so plugin:(

    And I want to use Scrolling behavior but I need several additional functions like these:

    1. GetScrollPosition - to get the current position in pixels

    2. SetScrollPosition - to set the current position in pixels

    3. GetScrollHeight = to get the scroll height

  • rexrainbow

    Hello rex,

    Can you give me an example for responsive scrolling text?

    I got the problem when i input the text (on scrolling text), and it has not reached the height value, my input text doesnt appear.

    Here is the .capx

    Cheers!

  • Does anybody know how to use the mouse for scrolling instead of the touch button?

    Behavior: scrolling

    Update: 2013/06/29

    Note: this behavior is for text plugin or official sprite font plugin, NOT for sprite.

    This behavior try to make official text object become a "scrollable" text object by maintain a content buffer in plugin.

    Demo

    Capx - scroll next line

    Capx - scroll bar

    There are two sample capx files. One is scrolled by keyboard, the other is scrolled by scrollbar.

    Usage:

    Set content

    - action: Set content

    - action: Append content

    Scrolling

    - action: Scroll by percentage (combine with scrollbar)

    - action: Scroll to next line/Scroll to previous line

    - action: Scroll to next page/Scroll to previous page

    Get content

    - expression: Text

  • Can anyone help me with this plugin please

    I have attached a capx with a simple page turning text app

    The scrolling behavior seems to be miscalculating the size of the visible page.

    Or am I missing something obvious.

    Thanks in advance for you help

  • rexrainbow, i just tried installing this plug in and i get the error, ---------------------------

    HTML5 exporter

    ---------------------------

    Unable to load plugin in 'F:\Installations\Construct 2\exporters\html5\plugins\rex_boundary\': Found 'GetPluginSettings' global, but it is not a function

    This plugin will not be available in the editor.

    ---------------------------

    OK

    ---------------------------

    Any help

    Behavior: scrolling

    Update: 2013/06/29

    Note: this behavior is for text plugin or official sprite font plugin, NOT for sprite.

    This behavior try to make official text object become a "scrollable" text object by maintain a content buffer in plugin.

    Demo

    Capx - scroll next line

    Capx - scroll bar

    There are two sample capx files. One is scrolled by keyboard, the other is scrolled by scrollbar.

    Usage:

    Set content

    - action: Set content

    - action: Append content

    Scrolling

    - action: Scroll by percentage (combine with scrollbar)

    - action: Scroll to next line/Scroll to previous line

    - action: Scroll to next page/Scroll to previous page

    Get content

    - expression: Textrexrainbow2013-06-29 16:38:39

  • Dasat

    It is a behavior, please put it into /behaviors folder.

  • Ok, my code works except i cant scrol text(numbers) and i cant find the exact code like you made in capx. Help please.

  • rexrainbow

    I have to create a chat window like Facebook in my game. So can I scroll sprite objects along with the text using this plugin? or what else can be done to implement something like that.

    I saw that the plugin can only append text for scrolling, is there any way I could scroll objects too?

  • rexrainbow

    I have to create a chat window like Facebook in my game. So can I scroll sprite objects along with the text using this plugin? or what else can be done to implement something like that.

    I saw that the plugin can only append text for scrolling, is there any way I could scroll objects too?

    Sorry, it only scroll text logically only.

  • rex, i've encountered with a problem, this plugin good work with scirra text, but not work with you TagText plugin

    screen:http://dl1.joxi.net/drive/0008/0341/561493/150210/2fb3fb891e.png and in this screen you can see, what all actions with text and TagText the same, but work only scirra text, i hope you understand me, because my english very low

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)