横版卷轴Flash游戏/大型横版场景

发布于 2024-08-29 20:08:37 字数 239 浏览 7 评论 0原文

我目前正在学习 Flash(CS4、AS3)并正在创建一个游戏。我当前有 1 个包含 4 个场景的 flv 文件,然后我从左到右移动,然后到场景 2,然后从左到右移动。在这款游戏中,需要点击弹出的项目并获得积分。

有什么办法可以将这些组合到 1 个场景中吗? Flash 只允许最大宽度为 2880 像素。原因是场景之间的转换很垃圾,并且我的 AS 在场景之间无法正常工作(它丢失了值)。

任何帮助将不胜感激!

内森

I'm currently learning Flash (CS4, AS3) and am creating a game. I have currently 1 flv file with 4 scenes, I then move from left to right and then to scene 2 and go from left to right. This is the game where items pop up that need to be clicked on and you get points.

Is there any way I can combine these onto 1 scene? Flash only allows you to have a maximum of 2880px wide. The reason for this is the transition between the scenes is RUBBISH and that my AS is not working correctly in between scenes (it loses values).

Any help would be greatly appreciated!

Nathan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

霊感 2024-09-05 20:08:37

滚动的常见方法是使用图块。基本上,您使用小积木来绘制游戏中的背景。使用这种技术,您可以在游戏中拥有几乎无限的宽度。查看上面链接的文章!

The common way of doing scrolling is by using tiles. Basically you use small building blocks to draw the background in the game. Using this technique you can have an almost limitless width in your game. Check out the article linked to above!

想你的星星会说话 2024-09-05 20:08:37

尽管从技术上讲它仍然是基于图块的滚动,但如果您的背景确实不是由各个小图块组成,您仍然可以将其拆分为 2880px 宽的位图数据,将这些位图数据推送到数组中,并在运行时 copyPixels 所需的像素像素从那里到你的屏幕上。

And although it is still technically tile-based scrolling, if your background really isn't composed of individual small tiles, you can still split it up into 2880px wide bitmapDatas, push those bitmapDatas onto an array, and at run-time copyPixels the required pixels from there onto your screen.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文