Oddworld Forums

Oddworld Forums (http://www.oddworldforums.net/index.php)
-   Fan Corner (http://www.oddworldforums.net/forumdisplay.php?f=7)
-   -   A.L.I.V.E Revived (http://www.oddworldforums.net/showthread.php?t=20907)

Phylum 06-17-2012 04:54 AM

Well that's just silly. To use that method without a modulo would require comparing integer division to float division, but I don't know how that would be achieved in GM.

I think grid_snapped (x, 0) would probably be the thing to use.

But trust me, don't play around with a y value in there. There will be a circumstance when it will break and do really odd things.

JayDee 06-18-2012 09:47 AM

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. :)

STM 06-21-2012 01:01 PM

More updates, or I will rape a ferret. Nah, but so far so good mate, I don't understand the coding, but I see the effects. I want to sex them Joshy.

JayDee 06-21-2012 01:28 PM

Updates.
 
Woop! Exams are finally over, updates will come thick and fast! Not now though, these are just a few things I had been doing whilst avoiding revision.
As said earlier I've adapted the lightning script to also work for chant orbs, but i needed sprites. So I drew some: Here's the 2 different Chant Suppressors.
http://i1270.photobucket.com/albums/...eenshot111.png
Yeah, I know it's missing the "arms" normally seen on them, but like in AO they're going to be rendered seperately on a different sprite, that I havn't drawn yet.
http://i1270.photobucket.com/albums/...eenshot115.png
Oh, there's Land Mines too.

xXxrenhoekxXx 06-22-2012 12:16 AM

amazing job so far dude keep it up,

I was also wandering if I could add the official odd world sprites into this after you release the engine (that is IF you release it... I hope :p)

(not insulting just wandering if you're going to make it private.)

JayDee 06-22-2012 07:42 AM

Yeah, of course you'd be able to add the official oddworld sprites :)