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.

Newcomers AppGameKit Corner / GetSpriteDistancePoint1X and similar commands not working?

Author
Message
Yaro
10
Years of Service
User Offline
Joined: 29th Mar 2014
Location:
Posted: 28th Mar 2015 02:03
I'm using GetSpriteDistance, and that's working properly, but when I try to call GetSpriteDistancePoint1X or similar commands, I'm always getting a zero. Both sprites in question are circles. Is this a known error?
Mike Archer
9
Years of Service
User Offline
Joined: 19th Feb 2015
Location: Wales
Posted: 28th Mar 2015 22:25
Are you calling GetSpriteDistance before calling GetSpriteDistancePoint1X? If you don't it won't work as it requires a call to GetSpriteDistance first.
Yaro
10
Years of Service
User Offline
Joined: 29th Mar 2014
Location:
Posted: 15th Apr 2015 13:47
Yes this is after calling GetSpriteDistance, even within the same sync loop.

Login to post a reply

Server time is: 2024-04-19 13:30:17
Your offset time is: 2024-04-19 13:30:17