Slow news day I'm afraid, folks. I've been messing around with the script i use to draw the electricity barriers, and will be using it in Chant Suppressors/Drones and Shrykull Lightning. Not sure what else it could be useful for. I have my final exam the Wednesday so there should be more updates afterthat point.
:
It's been a while since I've worked in GM, but here's the equivalent of something I used the other day when I was arsing around with LWJGL.
Put this in End Step, otherwise it won't work.
:
this.x += dx;
if (x % GRID_SIZE == 0) {dx = 0;}
Then just set dx in keyboard events. While the object's x isn't a multiple of your grid value it will keep moving in that direction. It should be faster than the GM function, especially if you don't need a vertical grid.
|
Thanks I'll arse about with that code when I have time.
