Editbox issues.

For questions about using Classic.

Post » Sun Oct 09, 2011 5:02 am

[code]
00
00|06
00|01|06
00|01|02|07
00|01|02|03|07
00|01|02|03|04|07
00|01|02|03|04|04|08
00|01|02|03|04|04|04|08
00|01|02|03|06|04|04|04|08
00|01|02|03|06|03|04|04|04|09
00|01|02|03|07|02|03|04|04|04|09
00|01|02|04|07|02|03|04|08|04|04|09
00|01|02|04|07|02|03|04|08|04|04|04|10
00|01|02|04|07|01|02|03|04|08|03|04|04|10
00|01|02|04|07|01|02|03|04|08|02|03|04|04|10
00|01|02|03|04|07|01|03|04|08|01|02|03|04|04|10
00|01|02|03|04|07|01|03|04|08|01|02|03|04|04|04|10
00|01|02|03|04|07|01|02|03|04|08|01|02|03|02|03|04|10
00|01|02|03|04|07|01|02|03|04|08|01|02|03|02|03|04|04|10
00|01|02|03|04|07|01|02|03|04|08|01|02|03|02|03|04|04|04|10
00|01|02|03|06|02|03|04|04|04|07|01|02|03|02|03|04|04|04|02|10
00|01|02|03|06|02|03|04|04|04|07|01|02|03|02|03|04|04|04|02|03|10
00|01|02|03|06|02|03|04|04|04|07|01|02|03|02|03|04|04|04|02|03|04|10
00|01|02|04|06|01|02|03|04|07|01|02|03|04|08|01|02|03|04|01|02|04|04|09
00|01|02|04|06|01|02|03|04|07|02|03|04|04|08|01|02|04|04|09|03|04|04|04|10
[/code]

This how it looks in the txt file.

However when I run it in game, it looks like this.


I want it appear as it appears in the text file. I have horizontal scroll off.

Can do this with a token?

Also, where can I get the "Wait plugin"?Azu2011-10-09 06:21:32
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sun Oct 09, 2011 6:35 am

This is an issue with the editbox.
You can workaround it by using the text manipulator object.

Example:

[code]+ System: Start of layout
-> TextManipulator: Read file AppPath & "test.txt" line by line

+ TextManipulator: On line read
-> EditBox: Append text TextManipulator.GetReadLine & NewLine[/code]
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun Oct 09, 2011 6:57 am

Awesome. Also, I didn't know the wait plugin as part of CC already.=P
I ran into a another issue. It doesn't seem to be reading the first characters or last characters in the text file. I have it set it to where it plays a sample based on the value in between the "|".

Like on line 1, it won't play "00". O

On line 2 and greater, it will play all values expect the last line in that line.

It worked fine when I just load it it using the Editbox.
Azu2011-10-09 07:06:59
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Oct 10, 2011 7:08 am

Well, the text manipulator method of loading the text does not change anything to the original text file, except that it replaces the newline character with its own newline character. So I would say it depends on how exactly you read in and interpret the text from the editbox. Could you please show a demonstration cap or at least some code snippets?
I guess you are using 'get token'?
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon Oct 10, 2011 3:33 pm

Yes, I used GetToken.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest