SetHandle in Sprite Lib
Posted: Wed Feb 04, 2015 3:05 pm
Sprite Lib is missing a very important feature
Sprites are rotated only around their center. Well, this was even in 1985 already out by a Function called MidHandle which could set the rotation point to any place inside the image.
Yesterday I wanted to make a little conversion from a MonkeyX-Demo and was astonished to see no Function like SetHandle in PB
What if you want to simulate a mouse cursor? Handle in the upper left corner.
How would you get this without a proper function set?
http://www.rrsoftware.net/uploads/Forum ... 504-06.jpg
This is what I want to achieve for a start
This is a demo of charlie in the MonkeyX examples
It is made with one simple Sprite which is 100s of times each frame manipulated with Rotate, Scale and SetHandle
A SpriteLib without must-have-features is quite useless
RGR
Btw:
It is not possible to insert Images here at present.
Clicking Preview or Submit shows this when I put the Image Link between the Img Tags
It was not possible to determine the dimensions of the image.
Sprites are rotated only around their center. Well, this was even in 1985 already out by a Function called MidHandle which could set the rotation point to any place inside the image.
Yesterday I wanted to make a little conversion from a MonkeyX-Demo and was astonished to see no Function like SetHandle in PB
What if you want to simulate a mouse cursor? Handle in the upper left corner.
How would you get this without a proper function set?
http://www.rrsoftware.net/uploads/Forum ... 504-06.jpg
This is what I want to achieve for a start
This is a demo of charlie in the MonkeyX examples
It is made with one simple Sprite which is 100s of times each frame manipulated with Rotate, Scale and SetHandle
A SpriteLib without must-have-features is quite useless

RGR
Btw:
It is not possible to insert Images here at present.
Clicking Preview or Submit shows this when I put the Image Link between the Img Tags
It was not possible to determine the dimensions of the image.