Handle Y

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Handle Y

#1

Post by KINGTUT10101 »

I'm trying to put handle y into a plug-in to raise the textures, but instead of raising it it just drops it. I've tried putting the number as positive and negative and both gave me the same results.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Handle Y

#2

Post by CommanderABab »

I think with handle y, y has to be the height of the image plus the amount you want it moved.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Handle Y

#3

Post by KINGTUT10101 »

I'll try that and see what happens.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Handle Y

#4

Post by KINGTUT10101 »

That didn't have any good effects. It still lowered it into the ground. Do you think I have to change the texture's height to get handle y to work?

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Handle Y

#5

Post by CommanderABab »

Up on y is negative :)

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Handle Y

#6

Post by KINGTUT10101 »

It doesn't do anything. I've already tried that (as stated in the first post).

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Handle Y

#7

Post by CommanderABab »

Having the same problems myself. Just takes some experimentation.

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

Platform

Re: Handle Y

#8

Post by Lobby »

You may show some code. I think there's a misunderstanding in the concept of handle y. The default value for it isn't zero but

Code: Select all

height - width / 4
with width and height being the size of your frame in pixels (at least for buildings).

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Handle Y

#9

Post by KINGTUT10101 »

I don't think I completely understand. I'll post part of the code here. I want to make the texture move up by 14 pixels. Is it possible and if yes, what must I do?

Code: Select all

[
   {
      "Author": "Kingtut 101 and Lobby",
      "conductive": false,
      "destroyable": false,
      "frames": [
         {
            "bmp": "topterrlite.png",
            "count": 9,
            "h": 48,
            "w": 32
         }
      ],
      "height": 1,
      "id": "topterr2lite.kt101",
      "influence noise": 0,
      "influence park": 0,
      "influence pollution": 0,
      "needs road": false,
      "power": 0,
      "text": "Elevated terrain for your cities.  You can't build anything on them though.",
      "title": "Elevated Terrain 2",
      "type": "park",
      "water": 0,
      "width": 1
   }
]

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

Platform

Re: Handle Y

#10

Post by Lobby »

Try it with

Code: Select all

"handle y":54,
handle x/y move the pivot point of the frame. Therefore a bigger y value will move the image upwards.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Handle Y

#11

Post by KINGTUT10101 »

Okay, that worked. Thanks for the help.

Post Reply Previous topicNext topic

Return to “Problems”