问题标签 [gdx-ai]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
libgdx - V1.8.0 中的 Node 类发生了什么变化?
我能够从V1.7.0
随附的 Node 接口进行扩展,gdx-ai
但V1.8.0
它们不存在?双问:
- 为什么?
- 如何从头开始实现自己的节点?我的意思是/猜想,其他类需要来自节点的核心功能,这些节点以前来自提供的接口,如
IndexedNode
,TiledNode
等。
对于分层寻路实现,我特别需要这个。我可以回滚,V1.7.0
但如果最新版本没有损坏,我当然更愿意使用它。
java - gdx-ai:如何禁用行为
从昨天开始,我一直在寻找一种方法来禁用 Gdx-Ai 中的某些行为,我编写了如下代码:
当“到达距离”<=“减速半径”时,我试图禁用这样的到达行为
但它不起作用,角色对象仍在移动,任何人都可以解决这个问题吗?谢谢
注意:在更新方法中,我确实禁用了任何翻译也禁用了 character.update(GdxAI.getTimepiece().getDeltaTime()); 线。
java - Animate Player using Finite State Machine in Ashley ECS
I have a big school project and I'm developing a Pixel Platformer game using libGDX.
I'm using ECS for the most part, but I've been having trouble rendering my player's animations because I can not distinguish the state of the player or at least the attack ones.
Player State Class
Let me just show you, so I have this "move" states:
Player Animations Enum
But I'll need at least this states for player animation:
And many more has u can see on this packed texture: Player Animations Atlas
PlayerAgent Class:
Animation Code
Code in the AnimationSystem that takes care of the player:
I was thinking of having states inside a state like Grounded -> Idle, Walking. But I still don't know how I can make the player AttackStates.
java - 找到多边形和直线 libgdx 交点的法线
我在 libgdx 的 Intersector 类中修改了一些代码,以查找直线和多边形之间的交点。但是,我不确定如何计算碰撞点的法线。下面是我拥有的一些代码。