gritsenko / c3_spine_plugin

Spine plugin for construct 3
MIT License
24 stars 8 forks source link

Questions on 'Keep Aspect Ratio' property #26

Closed MikalDev closed 4 years ago

MikalDev commented 4 years ago

@gritsenko, great to see more contributions to the addon!

Can you provide more details on the Keep Aspect Ratio property?

When I apply this to the sample project with a scale of 1.0, the Spine object renders so that only part of the character is visible. Are there other settings / sizes for the object / project to use to make it work as expected? I tried resizing the C3 Spine object size, but couldn't quite find something that worked.

gritsenko commented 4 years ago

You can use Scale property to control size of character and resize object itself to ajust bounds of viewport.

gritsenko commented 4 years ago

but yeah... we probably need more smart way to control size of character

MikalDev commented 4 years ago

Ok, got it. The way I have been using recently is in Spine project, placing an invisible image sized to how to how big a bounding box I want for all the character and all the animations (eg including lunges, falling dead, etc.) I can then use a scale of ‘1’. To set the proper aspect ratio of the C3 spine object, I can use a common ratio to scale the C3 object using the new texture expressions width/height. So far it’s working out pretty well, but does require events to to do the scaling.

Sent with GitHawk