SetHandle in Sprite Lib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

SetHandle in Sprite Lib

Post 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.
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: SetHandle in Sprite Lib

Post 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.
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Post Reply