Keilbritschn Posted January 7, 2014 Share Posted January 7, 2014 hey guys, how can i receive the position of an dxDrawImage? Link to comment
DNL291 Posted January 7, 2014 Share Posted January 7, 2014 Store the dxImage position in a variable and just use that variable to get the value. Link to comment
Keilbritschn Posted January 7, 2014 Author Share Posted January 7, 2014 Thanks a lot man, it runs . But isn't there a way with getElementData or something like that? Link to comment
DNL291 Posted January 7, 2014 Share Posted January 7, 2014 Yes, you can store the positions with setElementData and then get it using getElementData. Link to comment
xXMADEXx Posted January 7, 2014 Share Posted January 7, 2014 Yes, you can store the positions with setElementData and then get it using getElementData. It would be better to use variables. DX functions don't return elements anyway. Link to comment
DNL291 Posted January 7, 2014 Share Posted January 7, 2014 It would be better to use variables. DX functions don't return elements anyway. He can pass any other element, such as the player element. DX functions doesn't need return an element to make that possible. I didn't told him to store it with setElementData instead of a variable. Using variables is obviously better and simpler. Link to comment
Dealman Posted January 8, 2014 Share Posted January 8, 2014 As far as I know DX Functions don't create any elements, except for a select few. Such as making a shader/render target. So you'll have to rely on variables. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now