Scirra / Construct-feature-requests

A place to submit feature requests and suggestions for Construct.
https://www.construct.net
11 stars 1 forks source link

Change imagepoint on sprite animation/frame at runtime #246

Open masscube opened 5 months ago

masscube commented 5 months ago

Reviewed guidelines

Checked for duplicate suggestions

Summary

Set ImagePointX and ImagePointY for a sprite animation/frame during runtime.

Possible workarounds or alternatives

I have not yet found another option when new animations and new frames are added during runtime.

Proposed solution

Making ImagePointX(0) and ImagePointY(0) changeable during runtime.

Why is this idea important?

If a new animation and frames are created for a sprite during runtime, it is not possible to change the ImagePointX and ImagePointY. However, this is necessary, if only because otherwise a sprite would rotate incorrectly. Currently, the ImagePointX and ImagePointY are apparently always set to 0 when a new animation/frame is created.

Additional remarks

It would also be good to make an animation loopable during the runtime, if it is not possible yet?!

Tarek200 commented 5 months ago

I thought I was going crazy as I just tested today for the first time the new "add Frames" at Runtime and all images were loaded with the "image Point" at (0,0) despite that my default frame has the image Point in the centre. So I spent many hours trying to find a solution without any luck. This is a big issue as it really limits the purpose of "adding Frames" at Runtime when you need an image Point other than (0,0). I hope it gets implemented.