Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
dg18_tianci
Commits
bb4d34b6
Commit
bb4d34b6
authored
Jan 02, 2024
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动画bug修复
parent
5cd6008f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+5
-0
No files found.
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
bb4d34b6
...
@@ -108,6 +108,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -108,6 +108,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
tween
(
img_door_left
).
to
(
1.6
,
{
x
:
-
1000
}).
call
(()
=>
{
cc
.
tween
(
img_door_left
).
to
(
1.6
,
{
x
:
-
1000
}).
call
(()
=>
{
this
.
img_left
.
active
=
false
;
this
.
img_left
.
active
=
false
;
this
.
img_right
.
active
=
false
;
this
.
img_right
.
active
=
false
;
this
.
layout_target
.
children
.
forEach
(
nd
=>
{
nd
.
opacity
=
255
})
}).
start
();
}).
start
();
cc
.
tween
(
img_door_right
).
to
(
1.6
,
{
x
:
1000
}).
start
();
cc
.
tween
(
img_door_right
).
to
(
1.6
,
{
x
:
1000
}).
start
();
}
}
...
@@ -126,6 +130,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -126,6 +130,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
node
.
x
=
ar
.
pos
.
x
;
node
.
x
=
ar
.
pos
.
x
;
node
.
y
=
ar
.
pos
.
y
node
.
y
=
ar
.
pos
.
y
node
.
data
=
ar
;
node
.
data
=
ar
;
node
.
opacity
=
0
;
node
.
removeComponent
(
cc
.
Sprite
);
node
.
removeComponent
(
cc
.
Sprite
);
this
.
layout_target
.
addChild
(
node
)
this
.
layout_target
.
addChild
(
node
)
console
.
log
(
node
.
x
,
node
.
y
)
console
.
log
(
node
.
x
,
node
.
y
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment