Can you help me I can't center the texture?

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Pounkiller
Inhabitant of a Megalopolis
Reactions:
Posts: 600
Joined: 15 Jan 2018, 15:53
Location: Turkey
Plugins: Showcase Store

Platform

Can you help me I can't center the texture?

#1

Post by Pounkiller »

IMG_20180318_174242.png
IMG_20180318_174242.png (22.41 KiB) Viewed 1816 times
IMG_20180318_174256.png
I am making a crane plugin but I can't center the texture...
Blue crane inverted.png
Blue crane inverted.png (1.84 KiB) Viewed 1815 times

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Can you help me I can't center the texture?

#2

Post by Lobby »

You can use "handle x" and "handle y" to specify a pivot point yourself. Here I would use something like :json

Code: Select all

"frames":[{"bmp":"your image.png","handle x":11,"handle y":49}]

User avatar
Pounkiller
Inhabitant of a Megalopolis
Reactions:
Posts: 600
Joined: 15 Jan 2018, 15:53
Location: Turkey
Plugins: Showcase Store

Platform

Re: Can you help me I can't center the texture?

#3

Post by Pounkiller »

Lobby wrote:
18 Mar 2018, 16:52
You can use "handle x" and "handle y" to specify a pivot point yourself. Here I would use something like :json

Code: Select all

"frames":[{"bmp":"your image.png","handle x":11,"handle y":49}]
Thanks,I can make this handle thing in json genie right?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Can you help me I can't center the texture?

#4

Post by Lobby »

Yes, json genie is just another representation of json.

User avatar
Pounkiller
Inhabitant of a Megalopolis
Reactions:
Posts: 600
Joined: 15 Jan 2018, 15:53
Location: Turkey
Plugins: Showcase Store

Platform

Re: Can you help me I can't center the texture?

#5

Post by Pounkiller »

Thank you so much Lobby, I tried to do it with the texture for an hour and failed at the code while doing the handles
but now I understand it thanks again...

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Can you help me I can't center the texture?

#6

Post by Lobby »

You are welcome :)

User avatar
dustin908
Settler
Reactions:
Posts: 2
Joined: 25 Aug 2017, 19:31

Plugin Creator

Platform

Re: Can you help me I can't center the texture?

#7

Post by dustin908 »

Does it work with cars too

User avatar
Pounkiller
Inhabitant of a Megalopolis
Reactions:
Posts: 600
Joined: 15 Jan 2018, 15:53
Location: Turkey
Plugins: Showcase Store

Platform

Re: Can you help me I can't center the texture?

#8

Post by Pounkiller »

It works with all of the non square textures.

User avatar
dustin908
Settler
Reactions:
Posts: 2
Joined: 25 Aug 2017, 19:31

Plugin Creator

Platform

Re: Can you help me I can't center the texture?

#9

Post by dustin908 »

Ok Kool

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”