Hi,
I have a 2d game setup with ork, i use a custom player controller and camera controller. I have implemented grid battles and everything seems to work fine (highlighting, combat, etc,...).
However movement doesnt work reliably, sometimes it works, sometimes it doesnt move and keeps hanging on the move command event.
I dont use the player controller to move the character when in battle, so it just uses the transform component.
The horizontal pane is also set to XY in the game settings.
Things i found:
Enabling secure move on the change position node fixes the problem but makes the movement look bad. The character moves for a bit sometimes, or just teleports to the target.
Sometimes, with secure move off, the combatant does move correctly, sometimes it doesnt, i dont really know the reason why.
Any idea what the problem could be? Or a way to make the movement with secure move smooth?
Thanks in advance!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Here is a screenshot of the Change Position node
https://imgur.com/a/NHUDhIT
I have foundb the collider doesnt get disabled however (i use a box collider2D). when using the enable node, how do i access a box collider2d?
(Collider and Collider2D dont do the trick)
thanks in advance
Have you tried using straight up BoxCollider2D?
Also, how far is the distance the game object would move?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The distance is a max of 5units on either X or Y (5grid cells).
The character sometimes starts the proper move over time, but then after like half a second, it teleports to the target cell.
I guess this is during a grid move event, cycling through the path's cells?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
https://imgur.com/a/VTvzzKk
Thanks in advance
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I found its only in the Y direction that the character has trouble moving and just teleports.
Is there a seperate plane selection or something for movement? Or what could cause this behavior?
Thanks in advance
Maybe try disabling the Ignore Height Distance setting in the Change Position node.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Disabling the Ignore Height Distance setting fixed it! No idea why tho, thought it would count for z-axis, but works good now!
Thanks a ton, for the great asset and great (and patient) support! Ill be sure to make a review :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
What exactly was changed?
EDIT:
Oh, changing the Default Horizontal plane to XZ fixes this? Oh no, have I actually been in the wrong base setting this whole time?(!) :V
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
Previously you had to change the horizontal plane in various places, making it a bit too complex.
Which to horizontal plane to use depends on the project, XZ would be the 3D (Y-axis is height) and XY the 2D (top down) variant. For a side-scroller, XZ is probably better, as Y is still your height axis :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames