Help with horizontal animation

HI folks,
I’m really bad with expressions :(, I’m looking for creating a simple animation, horizontal way. Just I want to move an image using battery TAG, each 20%, EG: move from 160 to 50 (in 5 moves), that’s all. I think it’s simple, but I can’t find the way.

Thanks in advance,
Peace,
ROY

1 Like

So what I did to animate per second was this. I put this in position:
(260-(#DUs#*3.6))

Now, I started on the right (base position of 260) and then subtracted that by each second * 3.6 (just to make it move faster and to the left).

I would think that if you used the battery % instead of DUs, then it would slide across the screen. So like
(260-(#BLP#*2))… but its just a guess.

OR…
You could also make 5 separate images, put them where you want them and make um visible only when the battery level is within a set range. Something like:

$#BLP#>80?100:0$
$#BLP#<80||#BLP#>60?100:0$

Good luck!

2 Likes

Nice, thanks brakx, I solved it, just with #BLN#

image 5 (100%to80%) : $#BLN#>80?100:0$
image 4 (80%to60%) : $#BLN#>60?100:0$
image 3 (60%to40%) : $#BLN#>40?100:0$
image 2 (40%to20%) : $#BLN#>20?100:0$
image 1 (20%to10%) : $#BLN#>10?100:0$

Now I’ll add some image with a red light working when percentage is less than 10

Again, thanks dude!

1 Like