Set width and height doesn’t work properly after set text

Use this template to make awesome bug reports:

Your username: Electogenius

What kind of device are you using?: iPad7,11 it says in the about page

1 sentence description of the problem (I was doing _________, and then __________ happened):
I was making a kind of tutorial on how to do something, and then I realized that the text was really big when I set the width and height to 100

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Add a blank text object
  2. Add a set text
  3. Add a set width and height and set it to something small like 20 or 50
    ….

I expected this to happen: perfectly sized text

But instead this happened: much bigger text

Here’s a sweet screenshot:


compared with a square of equal width and height
Somebody might have already made a topic but I am not sure.

10 Likes

Interesting filler text. A translation?

Also I think this is supposed to be like this, since the width of the text is different than the height?

And I think a topic similar to this already exists, but it’s a bit different, so you might be fine:

6 Likes

That is the classic filler text “lorem ipsum”
It is a distorted version of a Latin text.

6 Likes

Yeah I found that when searching for a similar topic.

But it should act as a square right?

4 Likes

Ah yes, I recognized it as Latin. And after looking it up, I saw that.

According to Awesome-E:

I don’t know if this will answer your question. Also it was like this over a year ago, it might’ve changed since then.

4 Likes

Yes, but I thought width and height would turn the text into a square-like object.

4 Likes

I would think so too, but it apparently goes after the sprite on the editor, as ae had said. Or something like that.

5 Likes

apparently the parameters are different
https://forum.gethopscotch.com/t/have-text-and-image-width-parameters-be-the-same-why-do-they-differ/55740/18

4 Likes

The sizing for text is different compared to a shape

1 Like

That’s what’s confusing
Everything should be measured in pixel thingies right?

1 Like

It is yes but every object has their own default sizes which makes the set width and height block parameters different in every object

1 Like

That makes it more confusing and complicated tho

1 Like

It is weird, and I’ve had trouble with it before. I would recommend adding the set width and height block again after “Set Text.”

1 Like

Width and height parameters are proportional to the in-editor sprite, so if the text is bigger in the editor than the square, it will also be when the game is played

1 Like

Veeeeeeeeeeery odd. I don’t know

1 Like

Bump, is this fixed

1 Like

I don’t think so :(