It is currently April 30th, 2024, 9:34 pm

Add or subtract from variables

Get help with creating, editing & fixing problems with skins
User avatar
Senzai
Posts: 10
Joined: May 17th, 2012, 3:51 am

Add or subtract from variables

Post by Senzai »

Hey

I'm trying to make a simple "notes" skin with a header and footer image and an adjustable height. So I've got a header image that sits at the top, then a tiled border image with a variable height. I want the footer image's "y" value to equal the variable "height" minus 20. Here's the code so far:

Code: Select all

[variables]
width=516
height=400

[MeterHeader]
Meter=image
ImageName=Header.png
w=#width#

[MeterBorder]
Meter=image
ImageName=Border.png
Tile=1
w=#width#
y=70r
h=#height#

[MeterFooter]
Meter=image
ImageName=Footer.png
w=#width#
y=#height#-20
Thank you for any help in advance.
Creation is a matter of thought.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Add or subtract from variables

Post by smurfier »

When using formulas in settings and bangs they need to surrounded with parenthesis.

Y=(#height#-20)
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
Senzai
Posts: 10
Joined: May 17th, 2012, 3:51 am

Re: Add or subtract from variables

Post by Senzai »

Ahh, thank you. That worked perfectly :)
Creation is a matter of thought.