Laurent's Forum Posts

  • Maybe.

    Ashley, do you know about any bug concerning text objet content ? We try to scroll text content longer than text object but the end of the text seem to disappear

  • Hi

    I've been playing with your code, it works very well.

    But I've a point point : when the orignal text is longer that the box, then scrolling doesn't show it when scrolling down.

    Did I forgot something ?

    Here is the link to the file : https://www.dropbox.com/s/l9iebq04ruu2j3p/ScrollTextMaster.c3p?dl=0

  • Actually I do. I have to cycle through theses animations to choose an random one and this info is needed for many other calculation in the game

  • Sprites have an expression AnimationFrameCount that returns the number of frames in a animation but is there an expression that gives the number of animations in a sprite ?

    Tagged:

  • You do not have permission to view this post

  • 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

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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: