adamlg's Recent Forum Activity

  • Please can anyone confirm if they have the same problem?

  • Yes. I read it. It was working up until a few days ago. This is something I use on a fairly regular basis. No matter what I do, I can't get an image to load.

  • I have tried to load an image from a URL on several different computers in C2 and even the demo of C3 and it doesn't seem to be working.

    In the console it says

    "Access to image has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

    1) I tried "on start"

    2) I tried "On touched"

    Any ideas?

    Many thanks

    Adam

    https://drive.google.com/open?id=1vnfX2Kd-kdPD_Aiy7uQFXhFhtOVrqBHZ

  • Thanks.

    Really cool of you to take the time to reply with two nice solutions to highlighting text! That's half my problem solved :) Now I just have to figure out how to find out which word is currently being spoken in speech synthesis..

    Anyone have any ideas for this?

  • How do I highlight text as it is spoken in text to speech?

    I would really like to make an audio-book that highlights the word that is currently being spoken. If anyone has an idea about how to do this, it would be awesome!

    I think I am asking too much from construct though..

    Here's hoping!

    Many thanks!

  • Actually, this is perfect. A little tweaking of the line height and I got it working great for an entire page of text if needed. All depends of the font size / line height. You have no idea how helpful this is! My hero! :)

  • It doesn't work because that are word wraps (soft breaks), not newlines (hardbreaks). Word wraps are not in a string that is a formatting feature of the software

    which shows the string.

    There is a workaround. Try

    floor(Text.TextHeight/(Text.FaceSize+round(Text.FaceSize/3)))

    TextHeight: the real height of the text in the textbox (in pixel).

    FaceSize: Font size (in pixel).

    Problem is, you have free space between the text lines, my guess was 1/3 of the font size. but this could vary (size , font itself). No clue if this always correct.

    Asmodean You sir! Are a life-saver! This is perfect for the few lines I will be using!

    Thank you so much for this help :) I am not a coder really, and just muddling through. So there is no way at this stage of my ability, would I had figured that out by myself! Very kind of you to take the time :) I owe you one my friend!

  • Hey Asmodean, thanks for the reply and for checking! I really appreciate it!

    I am wondering if this is a beta problem? (Using Beta 265) Or am I doing something wrong here? Capx included:

    https://drive.google.com/file/d/1oWzceQBNv7kUY_C292ZtkLuKSbQaRx-j/view?usp=sharing

  • Hi, I would like to count the number of lines in a textbox.

    I thought "tokencount(Mytext.text, newline)" would do the trick, but apparently not.

    Does anyone have an idea how to count the number of lines in a textbox?

    Thanks for any help anyone can offer.

  • Thanks! I might get this to learn more about multiplayer when I have time.

  • Do I need to upload this to the arcade? Or can I upload it to my own website?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fantastic! I will gladly buy this, even though I have the firebase accounts from the seller already.

    I requested this feature, and within a week, the seller had it online. Love the fancy look to the leaderboard! It's fantastic!

    Can't stress enough how helpful the seller is with support.

    Many thanks, this is a great help!

adamlg's avatar

adamlg

Member since 18 Feb, 2018

None one is following adamlg yet!

Trophy Case

  • 6-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies