Jul 21, 2011 at 9:36 PM
Join Date: Jul 13, 2011
Location: Submerged in the colour orange
Posts: 63
LunarSoul said:You could JMP SHORT from the code to a free spot a shorter distance away, then JMP SHORT again to another spot, and so on until you have enough room to either put your code in or put in a JMP to the free space at the end of the code.
That's a good idea, but I can't imagine there being enough free space that's close enough for the JMPs for all four directions for the bullet. I could probably manage it if I knew a thing or two about optimizing the code like Lace said, but I don't. I'll try the simplifying to ADD DWORD PTR DS:[EAX+18],5 thing and, if it doesn't work like I'd like it to, I'll look further in to how to optimize. o:
EDIT:
Here's an interesting thing:
MOV DWORD PTR DS:[EAX+18],500 and
ADD DWORD PTR DS:[EAX+18],500 seem to do the exact same thing. ADDing doesn't seem to add every frame like it's supposed to... Or maybe something is equalizing it somewhere else in the bullet's code?