Search found 12 matches
- Thu Sep 24, 2009 4:20 am
- Forum: Coding Questions
- Topic: Needing to know the angle
- Replies: 9
- Views: 1657
Re: Needing to know the angle
Ok great news... I initialized the angle I set in the definition of ShipAngle by placing a RotateSprite3D(1, ShipAngle, 0) on the next line under it, then i flipped the image to point to the 0 angle (east) instead of the 270 angle (North) and now it works fine :). I want to thank both of you (Kaeru ...
- Thu Sep 24, 2009 2:45 am
- Forum: Coding Questions
- Topic: Needing to know the angle
- Replies: 9
- Views: 1657
Re: Needing to know the angle
RotateSprite3D(1, ShipAngle, 0)
Ok I tried this method out however either my starting angle is off (set to 270 by default as i assume east is 0) or my angle is not calculating correctly. Below is the full source try out and possibly explain visually more of what I'm working with: (Use any 2 .png ...
Ok I tried this method out however either my starting angle is off (set to 270 by default as i assume east is 0) or my angle is not calculating correctly. Below is the full source try out and possibly explain visually more of what I'm working with: (Use any 2 .png ...
- Thu Sep 24, 2009 1:53 am
- Forum: Coding Questions
- Topic: Needing to know the angle
- Replies: 9
- Views: 1657
Re: Needing to know the angle
Long story short I'm needing this "Angle" for the equation below to work correctly (it almost does now, but using my current method of keeping the angle value becomes inaccurate shortly after doing a few turns):
If KeyboardPushed(#PB_Key_Up)
radians.d = ShipAngle*#PI/180
PosX = PosX + ShipSpeed ...
If KeyboardPushed(#PB_Key_Up)
radians.d = ShipAngle*#PI/180
PosX = PosX + ShipSpeed ...
- Wed Sep 23, 2009 10:26 pm
- Forum: Coding Questions
- Topic: Needing to know the angle
- Replies: 9
- Views: 1657
Needing to know the angle
I'm needing a way to get the angle of a sprite manipulated by RotateSpride3d. In the syntax RotateSprite3D(#Sprite3D, Angle, Mode) we feed it a modifier to the angle which in turn rotates our sprite thus changing the angle by our given amount. However I have not found a way to pull the angle from ...
- Fri Feb 27, 2009 1:57 am
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
OK just tested it out with a live address and a value I already know and it is returning correctly, however I'm thinking my address range is off because I'm not finding correct addresses within the desired process. Is there anything that could be causing it not to be pulling the memory specific to ...
- Thu Feb 26, 2009 11:39 pm
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
- Thu Feb 26, 2009 11:01 pm
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
The question is "what format did you need it in?" Your previous code obtained the contents of memory and then just displayed the starting address of the buffer. It was a little hard to guess what you were trying to "see". I guessed and displayed the memory contents in the buffer as characters. If ...
- Thu Feb 26, 2009 6:40 am
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
I found some old VB6 Code to read from a specific address. I have used this before in the making of a trainer type application. I may work on trying to convert this logic into purebasic since its a little more already predefined as what and where things need to happen. Im sure if i can reproduce ...
- Thu Feb 26, 2009 5:20 am
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
Very interesting, I tested it out and I'm getting some weird return data shown below:
Code: Select all
È
{
- Wed Feb 25, 2009 8:39 pm
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
Yea I've seen that page quite a few times and the way I understand it from examples and even from that page is that the buffer is suppose to return the value at said address. However it appears that whatever the buffer is set to is not changed when the API returns, if it is even returning correctly ...
- Wed Feb 25, 2009 5:42 pm
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
- Wed Feb 25, 2009 3:42 am
- Forum: Coding Questions
- Topic: ReadProcessMemory... :( Please Help!
- Replies: 14
- Views: 7746
ReadProcessMemory... :( Please Help!
I am having some problems with ReadProcessMemory returning the value at the address specified. Yes the code below is a compilation of many examples that i have tried to get working and for the most part works except getting a correct return value. The example below displays the same buffer content ...