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 / C++ agk::GetSpriteXByOffset and agk::GetSpriteYByOffset

Author
Message
mrradd
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: CA, USA
Posted: 14th Sep 2015 05:18 Edited at: 14th Sep 2015 19:28
Hello again.

I have NO idea what I am doing wrong here, but for some reason I cannot
get the proper value from either agk::GetSpriteXByOffset or
agk::GetSpriteYByOffset. I had a problem before while applying force,
thought I solved it--didn't after actually trying it (I ported my old BASIC code
to my CPP code). I found my problem (or what I think it is), and it
seems to do with getting X Y positions. This is what I am doing and how I found
the issue I am having:



What am I doing wrong? I stripped out all of my wrapper classes and just use
the base stuff from the "agk" namespace as you can see above. I've done it the
same way with BASIC and it works fine. I love CPP too much to go back to BASIC,
so some help would be amazing.

EDIT[solved]: The error was between the chair and keyboard. The above code actually works.... I'm not sure what I was smoking when I wrote this.

-mrradd-

Login to post a reply

Server time is: 2024-11-16 20:51:01
Your offset time is: 2024-11-16 20:51:01