How do I get text from an array with swipe function.

Get help using Construct 2

Post » Mon Jul 27, 2015 10:28 am

Hi, I have a problem regarding the navigation and displaying text on layouts which has swipe events on it. It doesn't display anything on it even if there are data stored on a textfile storage. any suggestion or alternatives? Thank you :D
B
12
S
1
Posts: 63
Reputation: 633

Post » Mon Jul 27, 2015 10:37 am

Arrays, swipe-function and text-display are three seperate things..

Offcourse you can connect these things through events, but without knowing more about what you are trying to achieve, it would be very hard to answer your question in a helpfull way..
Could you clarify your question and share your capx/events, so we could take a look at what the problem actually is?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jul 27, 2015 11:17 am

I can't post links here because I don't have enough reputation for a I am new here =) sorry about that but in any case can you make a sample of the 3 things which you said separated but can connect to each other (if that's alright with you). I am currently trying to study and understand reading data from a text file into an array for my contents on a mobile learning book app. Thanks
B
12
S
1
Posts: 63
Reputation: 633

Post » Mon Jul 27, 2015 11:55 am

I'd love to help you, but I don't have the time to create a complete capx for you regarding this matter and even if I did like I said above:

LittleStain wrote:Without knowing more about what you are trying to achieve, it would be very hard to answer your question in a helpfull way..


If you want to use an array, you'd probably want something like a global variable to now the number of the text to display..


on swipe right/left
add/subtract 1 to global variable
set text to arrayAt(Global variable)

You could also opt for the dictionary object instead of the array and fill it with text seperated by tokens and use the tokenAt-expression.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jul 28, 2015 12:22 pm

Thanks for the reply. I just saw my mistake that's why it didn't display hehe I use scale outer on full screen browser property but still thanks for the advice really appreciate it =)
B
12
S
1
Posts: 63
Reputation: 633


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests