You are not logged in.

servaas

Intermediate

  • "servaas" started this thread

Posts: 215

Location: Belgium

  • Send private message

1

Saturday, March 28th 2020, 12:51pm

tween

Hello,

Can I 'tween' a layer ?
I want it to slide into my window from left to right.

This doesn't work.. (but it does with a plugin)

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<layer name="part1"
       type="text"
       align="bottomleft" x="-300" x.mobile="10" y="50" y.mobile="40"
       html="here comes my text"
       css="font-family:Verdana; font-size:12px; color:#ffffff;"
       css.mobile="font-family:Verdana; font-size:6px; color:#888888;"
       vcenter="false"
       padding="8"
       wordwrap="true"
       bg="true"
       bgcolor="0x9b1868"
       bgalpha="1.0"
       bgborder="0"
       bgroundedge="3"
       bgshadow=""
       txtshadow=""
       mergedalpha="true"
       interactivecontent="false"
       onautosized=""
       alpha="0.8"
       onloaded="tweensublimo1()"
       />
       
       <action name="tweensublimo1">
	tween(plugin[introimage].x, 30, 1.4, easeOutQuad);
	</action>




UPDATE : I had to change

Source code

1
2
3
<action name="tweensublimo1">
	tween(plugin[introimage].x, 30, 1.4, easeOutQuad);
	</action>

into

Source code

1
2
3
<action name="tweensublimo1">
	tween(player[part1].x, 30, 1.4, easeOutQuad);
	</action>

2

Sunday, March 29th 2020, 5:41pm

you adressed the wrong layer-name!

Change
<action name="tweensublimo1">
tween(plugin[introimage].x, 30, 1.4, easeOutQuad);
</action>
into
<action name="tweensublimo1">
tween(layer[part1].x, 30, 1.4, easeOutQuad);
</action>

Best,
Steve