Laurent's Recent Forum Activity

  • Hello Mikal,

    Any news of your Babylon addon ?

  • 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

  • Try Construct 3

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

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

Laurent's avatar

Laurent

Early Adopter

Member since 18 Jan, 2012

Twitter
Laurent has 1 followers

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies