I would like to ask about locking.
No matter which option I select in VS, the object does not lock (selecting “Lock object in screen” causes a memory error and crashes). Are there any additional settings required to enable locking, or any conditions that exclude objects from being locked, besides the parameters set in the action settings?
Thank you.
This is the error that occurs when locking objects within the screen.
I’ve checked other projects as well, and it seems that when creating a side-scroll mouse shooter, the game may fail to lock onto objects, causing the screen-bound object locking to fail. (For example, in this sample project, you can easily reproduce the issue by using “player → Move” to lock onto screen-bound objects.)
What should I do in this case?
I would appreciate it if you could take a look at this.
I investigated further, and it seems that the above error occurs when Torch is present.
It worked normally after removing it.
It seems the issue is that the CollisionShape2D in Torch doesn’t have a shape assigned. While it’s possible that the sample project is at fault for not assigning one, it’s quite hard to notice when an abnormal object causes other features to fail. I think it would be helpful if there were a more noticeable mechanism to alert users to such issues.
2 Likes
I apologize for the inconvenience.
I will report this to the development team and make adjustments to prevent crashes, if possible.
1 Like