- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
抱歉,问题标题太长了。我是新来的。
所以我的问题就像上面的标题一样。我几乎尝试了所有方法,并在互联网上到处搜索。我尝试过的一些伪线索是 .linear_interpolate("my screen width", "my screen height)
甚至检查其他人的代码并研究它并可能寻找使用它的方法。
我想要完成的是至少允许玩家在较大关卡的一部分周围移动,将相机向上滚动到关卡的边界,然后使用补间将相机滚动到同一场景的另一个边界,依此类推等等。
我什至不需要补间的所有东西,我只需要一种实现 Camera2D 边界的方法,它允许我实现补间节点来完成它。
请帮忙!
最佳答案
I don't really even need the whole thing with tweens all I need is a way to implement Camera2D bounds that allow me to implement a tween node to complete it.
限制 Camera2D
是容易的部分。要么相机根本不跟随玩家(例如 NES 的 Zelda),在这种情况下您只需要补间。
或者……
What I'm trying to accomplish is at least allowing the player to move around part of a larger level scroll the camera up to that bound of the level then scroll the camera using tween to another bound of the same scene and so on and so forth.
摄像机跟随玩家,直到达到某个限制……您可以使用属性 limit_left
来定义它。 , limit_top
, limit_right
和 limit_bottom
的 Camera2D
.将它们设置为要限制 Camera2D
的矩形的边界到。
我提醒你 Camera2D
达到极限并不是触发转变的原因。应该触发转换的是玩家角色达到极限......你可以用 Area2D
处理它因为玩家角色 - 通常 - 是一个物理对象。
因此您将处理 Area2D
的信号并在那里更新相机限制,执行任何你需要的补间,或者任何可能的情况。
关于godot - 如何在我的 Godot 游戏中添加 Mega Man、The Legend of Zelda 和 Metroid 等游戏的滑动过渡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68809951/
我正在为 ggpubr 中的图例位置而苦苦挣扎。我知道我可以修改图例位置 p.e.通过 ggpar(legend = "bottom")。但是,如何将图例标题放在图例键上方? 在 ggplot2 中,
SMF foo tax foo 我有一个来自网页的 html 源代码,上面给出了其中的一部分。现在我想获取 HREF仅当 tax 时的值?所
我想知道是否可以在页眉中插入图例。这样,图例也可以具有与整个文档相关的层次结构。 我在下面有更多相关的文字,但需要为读者突出显示。在这种情况下,个人信息将同时为 legend 和 h2。 h1 是站点
它们似乎都有效,并且都用于 https://matplotlib.org/users/legend_guide.html 中的示例中,尽管 plt.legend 在那里更常见。什么时候应该使用它们?
我无法更改图中分割图例的颜色。我需要两种不同的颜色作为图例和视觉图中的文本。 er<- ggmap(sq_map2) + geom_point(data = sisquoc, size
不幸的是,这件事有多长,我没有办法解决它,因为我没有 build 它,但基本上我要做的就是确保这些值设置为两个小数点,无论它。如果是 100,我希望它读取 100.00,这似乎是我遇到的问题。本节的代
目前,互联网上还没有使用 dc.js 和 dc.legend() 函数实现具有图例的气泡图的示例。 that.sessions_scatterplot .width(830)
我需要 PieChart 中的垂直图例。现在库仅提供 2 个选项:顶部/右侧。如果使用正确 - 图例在几列中。我需要一列中的图例。 我发现了一个 hack - 正确的变换值并将图例放在一列中。 v
将多个黄砖图表放入子图排列时遇到问题。标题和图例仅显示最后一个图表。我尝试了多种编写代码的方法,但无法让所有方法都显示图例和标题。我敢肯定,上类很简单。 这是一段代码: f, ((ax1, ax2),
下面的树状图有两个级别。我想显示顶级节点(节点 A 和节点 B)的图例。对于我使用过的其他类型的图表,图例可以自动生成,也可以明确定义。使用树状图,看起来一个不是自动生成的,如果我明确定义一个,它永远
我们已经使用 jqPlot 实现了 donut chart 。 我们如何将图例添加到 donut chart 的中心? 在此先感谢您的帮助。 最佳答案 根据 jqPlot 文档的建议:jqplot d
我想去掉图例中名称和百分比之间的空格。在图片中,我用黄色突出显示了空间。 例如,我希望第一个图例项是“立陶宛 (30.5%)”。 “立陶宛”和“30.5%”之间的额外空格破坏了我的用户界面。 我的图例
我正在尝试将 AmChart 图表图例合并为一行,但运气不佳。图例是分开的(一个代表一行)。 文档 http://docs.amcharts.com/3/javascriptcharts/AmLege
有人知道是否可以在 Grafana 中定义自定义图例值吗? 来自documentation ,有一些可能的功能: Legend Values Additional values can be show
我需要一个从字典生成数据的代码的图例。我不知道字典中有多少键有没有办法对此进行“动态”图例? import matplotlib.pyplot as plt for host in d.keys():
我有一个 fieldset 工作 - 这是代码: Signed In Users (2
当我将以下样式应用于图例标签时 display: inline; width: 300px; 我看到图例标签的宽度为 300px 它仍然接受宽度。 Here是一个演示。这个元素有什么特别之处吗,因为我
这个问题在这里已经有了答案: Matplotlib: figlegend only printing first letter (2 个回答) pyplot legend label being tr
我有这个代码: List legends = new ArrayList<>(lineChart.lookupAll("Label.chart-legend-item")); Legend legen
我的数据是这样的: service,rating_1,rating_2,rating_3,rating_4,rating_5 renew_patent,0,0,1,2,11 apply_benefit
我是一名优秀的程序员,十分优秀!