Hitbox position does not follow sprite position #2338
-
I have created a sprite that is supposed to act as the floor of an infinite scrolling platformer. The camera is constantly scrolling to the right and I update the position of the floor sprite based of the FlxG.camera.scroll.x. However, this does not change the hitbox's position even when calling the updateHitbox() function within the update loop. What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've since found the answer at https://stackoverflow.com/questions/43792751/flxg-collide-not-working-when-x648 |
Beta Was this translation helpful? Give feedback.
-
There's another way to reset the worldBounds if you're using the |
Beta Was this translation helpful? Give feedback.
I've since found the answer at https://stackoverflow.com/questions/43792751/flxg-collide-not-working-when-x648