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

Post your completed addons to share with the community

Post » Fri Sep 13, 2013 9:46 am

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
B
5
Posts: 29
Reputation: 568

Post » Tue Jan 21, 2014 12:15 pm

@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!
B
16
S
2
Posts: 39
Reputation: 717

Post » Thu Feb 13, 2014 6:23 pm


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


[QUOTE=rexrainbow] 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[/QUOTE]
B
14
S
4
Posts: 21
Reputation: 1,038

Post » Wed Mar 26, 2014 7:49 pm

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
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 23
Reputation: 421

Post » Mon Aug 04, 2014 11:26 am

@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
rexrainbow wrote: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
B
15
S
4
Posts: 138
Reputation: 2,003

Post » Mon Aug 04, 2014 3:51 pm

@Dasat

It is a behavior, please put it into /behaviors folder.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Oct 06, 2014 4:06 pm

Ok, my code works except i cant scrol text(numbers) and i cant find the exact code like you made in capx. Help please.
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 1
Reputation: 152

Post » Fri Oct 31, 2014 7:42 am

@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?
B
3
Posts: 3
Reputation: 181

Post » Fri Oct 31, 2014 8:24 am

prshdeshpande wrote:@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.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Tue Feb 10, 2015 7:16 am

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
B
20
S
6
G
2
Posts: 173
Reputation: 2,762

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: neverk, Psychokiller1888 and 2 guests