Handle Y
Moderator: Plugin Moderators
- 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
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.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Handle Y
I think with handle y, y has to be the height of the image plus the amount you want it moved.
- 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
I'll try that and see what happens.
- 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
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?
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Handle Y
Up on y is negative
- 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
It doesn't do anything. I've already tried that (as stated in the first post).
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Handle Y
Having the same problems myself. Just takes some experimentation.
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Handle Y
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 with width and height being the size of your frame in pixels (at least for buildings).
Code: Select all
height - width / 4
- 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
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
}
]
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Handle Y
Try it with
handle x/y move the pivot point of the frame. Therefore a bigger y value will move the image upwards.
Code: Select all
"handle y":54,
- 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
Okay, that worked. Thanks for the help.