Keilbritschn Posted January 7, 2014 Posted January 7, 2014 hey guys, how can i receive the position of an dxDrawImage?
DNL291 Posted January 7, 2014 Posted January 7, 2014 Store the dxImage position in a variable and just use that variable to get the value.
Keilbritschn Posted January 7, 2014 Author Posted January 7, 2014 Thanks a lot man, it runs . But isn't there a way with getElementData or something like that?
DNL291 Posted January 7, 2014 Posted January 7, 2014 Yes, you can store the positions with setElementData and then get it using getElementData.
xXMADEXx Posted January 7, 2014 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.
DNL291 Posted January 7, 2014 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.
Dealman Posted January 8, 2014 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.
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