It is currently May 6th, 2024, 3:51 pm

Measure result as X coordinate

Get help with creating, editing & fixing problems with skins
Camorak
Posts: 1
Joined: February 14th, 2012, 10:44 pm

Measure result as X coordinate

Post by Camorak »

Hey all,

I'm new here and I need a little help. I searched the foruns and found nothing, so I decided to post as a new topic, sorry if it's too basic :oops: .
So, I want to use the date as a number, trasformed by Calc, to set the position of a image, but it's not working. How can I do this (if possible)?

I tried this (in short):

Code: Select all

[Measures]
[MDate]
Measure=Time
Format=%d

[MCalc]
Measure=Calc
Formula=(MDate * 10)

[Meters]
[meterFrame]
Meter=IMAGE
ImageName=#SKINSPATH#\images\frame.png
X=MCalc
Y=0
Thanks in advance. :thumbup:
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Measure result as X coordinate

Post by smurfier »

For what you are doing you need to put brackets around the Measure name and add DynamicVariables=1 to your meter.

Code: Select all

[Measures]
[MDate]
Measure=Time
Format=%d

[MCalc]
Measure=Calc
Formula=(MDate * 10)

[Meters]
[meterFrame]
Meter=IMAGE
ImageName=#SKINSPATH#\images\frame.png
X=[MCalc]
Y=0
DynamicVariables=1
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 . . .