PHP Code:
while (keydown(0)) {
if (keydown(1)) {
player.x += .1;
player.y -= .1;
}
}
using this is also getting nowhere. It just stops what it was doing before most of the time, and on the rare occasion that it does work it pushes the player heavily around the gmap. I tried using something like .0001 as well, and the closest thing was .001 but it still pushed me a good 15 tiles. Seems like its doing some kind of opposite direction as well. :/ I'm stuck, probably something stupid and simple as usual too that I'm just not seeing. My logic is out of whack lately.