Scale

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 834
Joined: 24 Oct 2018, 11:41
Plugins: Showcase Store

Plugin Creator

Platform

Scale

Post by Imran M »

One thing that you really need to use is scale. Sometimes it's not too important, but you might need to use scale to make a real thing's height in the game. Well, I have a solution to that! The following formula should help, it's pixels divided a theo human (3 pixels), times by your scale. The scale is how big a theo human is, which is 3 pixels. For most people they use 2m, so 3 pixels = 2 meters. I, however, use 1.8 meters since 2 meters is way too tall for me. This would be a simplified version of the formula. Bear in mind s = scale, p = amount of pixels.
pixil-frame-0.png

For meters in real life to pixels, you have to do pixels times by a theo human (3 pixels) divided by your scale. Here is the simplified formula.
pixil-frame-0 (1).png
You do not have the required permissions to view the files attached to this post.
I just love the DOPE-amine you get after completing a plugin!
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Scale

Post by Lobby »

Thank you for the explanation :bc

So by scale you reference to the considered real-life height of a human.

To put it differently:
\(h_{real}=\frac{p}{3}\cdot s\)

\(p=3\cdot \frac{h_{real}}{s}\)
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 834
Joined: 24 Oct 2018, 11:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Scale

Post by Imran M »

<..>
I knew I was missing something! It was what it equals to!
I just love the DOPE-amine you get after completing a plugin!
w
wetguy
Inhabitant of a Megalopolis
Reactions:
Posts: 738
Joined: 25 Nov 2017, 04:10
Location: United States of America
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Scale

Post by wetguy »

Not all things in theotown are to scale with eachother though. For example, the ships and airbus a340s and a380s (theoair t340s and t380s) are smaller than they "would" be, and cars are bigger than they "would" be. I think this is due to the limitations of the game.
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 834
Joined: 24 Oct 2018, 11:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Scale

Post by Imran M »

wetguy wrote: 15 Feb 2019, 19:14 Not all things in theotown are to scale with eachother though. For example, the ships and airbus a340s and a380s (theoair t340s and t380s) are smaller than they "would" be, and cars are bigger than they "would" be. I think this is due to the limitations of the game.
Yes that is true, due to the fact that theotown uses pixels unlike other building simulators. So, I think we should classify this tutorial for buildings mostly.
I just love the DOPE-amine you get after completing a plugin!
Previous topicNext topic