Page 1 of 1

SetHandle in Sprite Lib

Posted: Wed Feb 04, 2015 3:05 pm
by Thade
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.

Re: SetHandle in Sprite Lib

Posted: Wed Feb 04, 2015 8:23 pm
by Thade
It is a weird management anyway. The DisplayHandle is in the upper left corner. The RotationHandle is in the middle of the image. After Zooming it rotates at a place you have to make crazy calculations to find out where that is.
I wonder if anybody has used that Lib after they noticed that it is as it is.
In my view this needs a complete rework.