Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The result of the flip object vibrates #1214

Open
amrimelongaming opened this issue Jan 23, 2024 · 0 comments
Open

The result of the flip object vibrates #1214

amrimelongaming opened this issue Jan 23, 2024 · 0 comments
Labels

Comments

@amrimelongaming
Copy link

amrimelongaming commented Jan 23, 2024

Describe the bug

The result of the flip object vibrates

To Reproduce

Execute the flip function and see the result when the flip object vibrates.

Expected behavior

The first image of the animation (the png sequence) as the main pivot reference so the other sequence will follow the first image pivot and the result there's no issue when flip the animation.

Screenshots

Screenshot 2024-01-23 095650

Live Example

Device (please complete the following information):

  • Device : Laptop Lenovo
  • OS : Windows 11
  • Browser : Chrome
  • melonJS Version : 15.12.0

Additional context

We've followed your suggestion to disabled trimming, and it works. but the problem is that if this applies to all image assets, it will take up space on the texture packer page which is limited to only 16 pages so it will impact on how many asset images that are included in the game level.
Ideally, in my opinion, the trimming process helps to add assets to the texture packer page so that on 1 level we will have more assets. Therefore, if possible, the texture packer will still do trimming, but the pivot in the melon editor will not change but will remain in the middle.
I tried using unity to put animation using trimming and flip animation like the one use in melon editor and it work perfectly fine, after I check it looks like the unity using the first image of the animation (the png sequence) as the main pivot reference so the other sequence will follow the first image pivot and the result there's no issue when flip the animation. Can we apply their features to our melon editor? So we can trim all the assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant