There are 4 or 5 ways to do that. Tell me your way so that I can guide you. What did you do to change the space?SilverDarkBlade wrote:thank you. i had just changed the W option and it fixed it. il remove some of the redundant in my code :P
however another issue i ran into lol. Increasing the space between the 2 text versions makes it reset early.
It is currently April 20th, 2024, 9:27 am
Specialised moving text.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Specialised moving text.
-
- Posts: 29
- Joined: March 7th, 2017, 7:18 am
Re: Specialised moving text.
i tried to do it exactly like you said in this postkyriakos876 wrote:Simply go to:Now if you want to make the space larger, add the space you want next to #XValue#.Code: Select all
[MeterText1Mirror] Meter=String Text=Something FontSize=50 X=((([MeterText1:W]>#Width#)*(([MeterText1:W]) + #XValue#))+(([MeterText1:W]<#Width#)*(#Width#+#XValue#))) Y=0 AntiAlias=1 DynamicVariables=1
For example if you want to add 3 pixels the Xoption will become:
X=((([MeterText1:W]>#Width#)*(([MeterText1:W]) + #XValue#+3))+(([MeterText1:W]<#Width#)*(#Width#+#XValue#+3)))
If you want to make the space smaller, you just subtract the number.
For example if you want to make it 3 pixels close the Xoption will become:
X=((([MeterText1:W]>#Width#)*(([MeterText1:W]) + #XValue#-3))+(([MeterText1:W]<#Width#)*(#Width#+#XValue#-3)))
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Specialised moving text.
Oh apparently I forgot to say that you need to add or subtract the same number in this measure:SilverDarkBlade wrote:i tried to do it exactly like you said in this post
Code: Select all
[MeasureX1]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Action1 , 25 , #Repeat#
ActionList2=| Wait 3000 | Action2 | Repeat Action1 , 25 , #Repeat#
Action1=[!SetVariable XValue "(Clamp(#XValue#-2,(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] ),#Width#))"][!Update]
Action2=[!SetVariable XValue "0"][!Update]
DynamicVariables=1
Code: Select all
Action1=[!SetVariable XValue "(Clamp(#XValue#-2,(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] ),#Width#))"][!Update]
Code: Select all
(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] )
Random example:
(-10-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] )
See that -10 ? Do the same with either + or - with the same number you used on the meter.
-
- Posts: 29
- Joined: March 7th, 2017, 7:18 am
Re: Specialised moving text.
ah thanks lol. you are a really helpful person. my code finally works as intendedkyriakos876 wrote:Oh apparently I forgot to say that you need to add or subtract the same number in this measure:Specifically at:Code: Select all
[MeasureX1] Measure=Plugin Plugin=ActionTimer ActionList1=Repeat Action1 , 25 , #Repeat# ActionList2=| Wait 3000 | Action2 | Repeat Action1 , 25 , #Repeat# Action1=[!SetVariable XValue "(Clamp(#XValue#-2,(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] ),#Width#))"][!Update] Action2=[!SetVariable XValue "0"][!Update] DynamicVariables=1
More Specifically, at:Code: Select all
Action1=[!SetVariable XValue "(Clamp(#XValue#-2,(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] ),#Width#))"][!Update]
Add or subtract the same number in there as well and you should be fine.Code: Select all
(-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] )
Random example:
(-10-#Width#-([MeterText1:W]>#Width#)*[MeterText1:W] )
See that -10 ? Do the same with either + or - with the same number you used on the meter.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Specialised moving text.
No problem ^_^ Always glad to help!SilverDarkBlade wrote:ah thanks lol. you are a really helpful person. my code finally works as intended