Laurent's Forum Posts

  • Thanks to Maverick1912, I managed to set up a scrolling textbox to display longtext. It has the following features :

    - touch top and bottom half of the box to scroll text down/up, scroll speed accelerates when user touches text box further from text box middle

    - a test to stop scroll down when space is added to of text

    I'm now trying to stop scroll up when bottom of text is reached

    If this type of text box scroll system is good for my needs, I think the best achievement would be to recreate swipe scroll with inertia.

    Anybody has an idea on how to do this ?

    Here is the capx file :

    dropbox.com/s/qdmpi2edonqc36d/ScrollText.c3p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you ! I managed to have it working and added a few things :

    - a formula to acccelerate scroll speed when user touches text box further from text box middle

    - a test to stop scroll down when space is added to of text

    Also, do you know how to stop scroll up when bottom of text is reached ?

    And I think the best achievement would be to recreate swipe scroll with inertia.

    Any idea on how to achieve this ?

    https://www.dropbox.com/s/qdmpi2edonqc36d/ScrollText.c3p?dl=0

  • Thanks Maverick !

    I tried to reproduce your code but apprently variable declaration like step and scroll_offsetY seem to be missing as well as how are organised text and textinput documents on the layout

  • Thanks for your reply !

    I don't une text input because I need to be able to change the font and BBcode.

    How do you put up in the code your offset method ? Could you provide an example ?

  • In my game, player keeps track of their actions and can review them all chronologically in a journal. This journal is displayed in a single layout and of course the text can be longer that the screen itself. So I need the text in the text box to scroll.

    How can I do that ?

    Tagged:

  • Oh, let me explain.

    At the begining of the game, every cell in depth1 is empty.

    When in the begining of the game player performs action D, then x is stored in depth1 where D stands in depth0. Then when payer performs F, then x+A is stored in depth1 where F stands in depth0, etc

    I'm not sorting anything, just putting incremented variable in the array cells at their corresponding action coordinate.

  • And the point is I don't know how to code the engine tu pull values (hence my question here) :(

  • Actually, I haven't even managed to sort the array.

  • Hi!

    Thanks for your reply ! This is what I thought but I didn't know how to put it together.

    Would you propose a file ?

  • In my game, the player performs actions (A, B, C, D, etc) in a certain order (1, 2, 3, 4, etc). At runtime, I'm using an XYZ array named Journal to store for each action a value corresponding to its order.

    The following drawing shows the status of the array at the end of the game. It reads that actions have been performed in the following order :

    E, D, A, B, I, etc

    I want to create a LogBook function for the player so that they can browse through their game history. So I need to create a function that goes through the array, pick the numbers in their order and add the corresponding action description (A, B, C, etc) to a text file to create a sort of narrative.

    How can I do that ?

    Tagged:

  • Point is RGPD not only applies to app that can be dealed with cordova but essentially to websites, that is the case for many games.

    The best solution I guess, is to ask scirra to develop a specific plug in to deal with it and to make it versatile enough to allow users to adapt it easily to new regulation changes

  • Actually, there's a 3rd party plugin only dedicated to Google Analytics that allows to disable cookies imcsw.com/2019/07/15/handy-utilities-plugin

    But I'm sure something can be made with as many options as needed to allow us to easily update our games to new rules

  • Thank you fredriksthlm

    Since Datastorage and other data collection are very common in games created with Construct, I think the dev team should propose a regular plug-in for data storage consent. What do you think Ashley ?

  • Very interesting discussion.

    What about webapp made with Construct that don't use Admob ? Is webstorage (used to keep game status in user device) RGPD compliant and can be uses without warning and consent ?

  • That solution seems to work perfectly :) Laurent You can remove the else condition and clone the first event twice, swapping out the snapshotRed for green and blue.

    Thanks I'll do that way. I still find strange this red value seems to come out of nowhere.