0

Edit: Is there any way to adjust the stage size and position from inside flash?

Hey Im making a flashgame right now, its a 2D game with 2charakters. You can move them right now trought the level as you want to, but my problem is, its only one fourth of the whole level displayed, so I thought about making a camera that moves along with the player.

Ussualy I would put all the level content into a container and move the container, but my problem is, that I have 2charakters which can move and the camera has to focus on both of them otherwise the second player cant see what he is doing. So I thought about scaling the background and the characters up at the same time to create a zoom in zoom out effect depending on the distance between the players, but scaling the charakters up is pretty complicated because the charakter does not only consists out of one movieclip.

4

1 回答 1

1

将关卡内容与玩家一起放入容器中。继续执行游戏所需的所有常规逻辑,而不是移动关卡内容;移动字符。

然后对于每一帧,根据两个玩家的位置调整新的外层容器的比例和位置。

于 2012-08-24T11:46:20.113 回答