|
Post by cundo on Dec 20, 2023 23:41:42 GMT
I'm very rusty to code anything at the moment... does anyone have a routine to centre a sprite when its scale change at runtime?
btw, is it 'centre' or 'centre'? haha
|
|
|
Post by Rod on Dec 21, 2023 8:04:24 GMT
I think you will have to keep offsets for each sprite. I may be wrong but there may be a bug with centresprite, I think it works only at the original size. Collision detection ditto. I would need to do more research.
Also centresprite is a Liberty BASIC command.
|
|
|
Post by cundo on Dec 21, 2023 20:47:37 GMT
I was making my own routine getting the width and height from the bitmap file then after SpriteScale changing the center position relative to that size
|
|