Oddworld Forums > Zulag Three > Fan Corner


 
Thread Tools
 
  #31  
06-17-2012, 05:54 AM
Phylum's Avatar
Phylum
No Artificial Colours
 
: Sep 2008
: Rock bottom
: 4,911
Blog Entries: 94
Rep Power: 23
Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)Phylum  (5748)

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.
Reply With Quote
  #32  
06-18-2012, 10:47 AM
JayDee's Avatar
JayDee
Global Moderator
Problem Sleuth
 
: Aug 2008
: AAAAAA
: 1,119
Blog Entries: 28
Rep Power: 17
JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)

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.
__________________

Reply With Quote
  #33  
06-21-2012, 02:01 PM
STM's Avatar
STM
Anarcho-Apiarist
 
: Jun 2008
: Your mother
: 9,859
Blog Entries: 161
Rep Power: 27
STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)

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.
__________________
:
Oh yeah, fair point. Maybe he was just tortured until he lost consciousness.

Reply With Quote
  #34  
06-21-2012, 02:28 PM
JayDee's Avatar
JayDee
Global Moderator
Problem Sleuth
 
: Aug 2008
: AAAAAA
: 1,119
Blog Entries: 28
Rep Power: 17
JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)
Exclamation 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.

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.

Oh, there's Land Mines too.
__________________

Reply With Quote
  #35  
06-22-2012, 01:16 AM
xXxrenhoekxXx's Avatar
xXxrenhoekxXx
Bola Blast
 
: Apr 2012
: in a house, why do you ask?
: 407
Rep Power: 13
xXxrenhoekxXx  (116)xXxrenhoekxXx  (116)

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 )

(not insulting just wandering if you're going to make it private.)
Reply With Quote
  #36  
06-22-2012, 08:42 AM
JayDee's Avatar
JayDee
Global Moderator
Problem Sleuth
 
: Aug 2008
: AAAAAA
: 1,119
Blog Entries: 28
Rep Power: 17
JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)JayDee  (1389)

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

Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 








 
 
- Oddworld Forums - -