电晕 - 使用transition.to移动组

问题描述 投票:0回答:1

我想以不同的速度移动我的主要对象组。

我可以以相同的速度移动我的组没有问题,并根据需要广告到var以进行删除。但是如何让对象以不同的速度移动,没有for循环并查看组本身,因为如果我使用for循环那么将需要多个变量来保存“补间”引用...

local transOptions = { 
                time = math.abs(distanceToMaxLeft / speedToMove), 
                x = BG_MIN_X_POS, 
                onComplete = cancelAnyExistingTransition(bg) 
            };
bg.tween = transition.to(mainSceneGroup, transOptions);
performance corona transition game-engine
1个回答
0
投票

使用mainSceneGroup [ObjectIndex]访问对象怎么样?

© www.soinside.com 2019 - 2024. All rights reserved.