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 / Determine position after rotation

Author
Message
Max Tillberg
18
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 3rd Jul 2013 18:03
I have a rotating sprite that I have changed with setSpriteOffset. I now wonder how I can get the coordinates of the point that the sprites rotates around? I think GetSpriteX will give the original top poition of the sprite

Sincerely,
Max Tillberg
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Jul 2013 18:23
Try "getSpriteXbyOffset(spriteID)" and "getSpriteYbyOffset(spriteID)"


this.mess = abs(sin(times#))
Max Tillberg
18
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 3rd Jul 2013 18:35 Edited at: 3rd Jul 2013 18:36
I feel like a complete idiot. Thanks a lot for your help with the comand.

Sincerely,
Max Tillberg
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jul 2013 07:46
For future reference, I made the AppGameKit docs searchable which has helped me find commands I wasn't aware of yet. Just searching for "offset" and the results would show you those commands.

http://www.zimnox.com/resources/agk/docs/

Login to post a reply

Server time is: 2024-05-03 23:11:19
Your offset time is: 2024-05-03 23:11:19