Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / little help please ...

Author
Message
haliop
User Banned
Posted: 4th Oct 2014 09:36
hi
im building an editor engine like app
i use sprite lines
using this :



so i always know where the x,y and x1,y1 of the sprite the edges.
now i want to rotate the sprite on its center but i have no idea how to maintain x,y and x1,y1 as these are needed for further research..

thank you for ur time.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Oct 2014 13:50
maybe try this.
float GetWorldXFromSprite( iSpriteIndex, x, y )
http://www.appgamekit.com/documentation/Reference/Sprite/GetWorldXFromSprite.htm

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
haliop
User Banned
Posted: 4th Oct 2014 17:36
wow thank you that is exactly what i needed.
Thank you.

Login to post a reply

Server time is: 2024-11-25 10:46:14
Your offset time is: 2024-11-25 10:46:14