Jump to content


Chilisoup

Member Since 26 Jul 2008
Offline Last Active Apr 26 2011 11:22 PM

Posts I've Made

In Topic: Mobs of zombies

26 April 2011 - 07:34 PM

Thank you very, very much Nocturne, im going to look into your examples for wandering AI.

In Topic: Mobs of zombies

26 April 2011 - 07:17 PM

okay. So I only have one room at this time, so because of my lack of understanding of gml, I put 'break' in before If global.night range = 300 else range = 200, and it solved the variable initializing problem. But the zombies are no longer present :/

In Topic: Mobs of zombies

26 April 2011 - 07:02 PM

I implemented all the codes you told me to, and it still comes up with an error message in obj_reds create event:

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_red:

Error in code at line 4:
   if global.night range=300 else range=200; //get the range to check...
             ^
at position 12: Unknown variable night


Which is silly, because I have my 'obj_time' object in the room, and here is it's codes

'obj_time' Create Event
Spoiler


'obj_time' Step Event
Spoiler

In Topic: Top down AI

26 April 2011 - 05:48 PM

you rock! thanks for these examples, they're helping a lot

In Topic: Drawing Sprites with Animation

26 April 2011 - 04:41 PM

You guys are awesome. GPro, your coding did what I wanted after fiddling with ther x and y position of the body, because it appeared a little to the top right of the legs. Im not sure if both sprites are centered, but I do know that they are different sizes, with the body sprite being larger than the legs. Now what if i wanted to take this a little further, and change a sprite. Could you go into a little detail about what that code really means, I'm trying to get a good grasp on gml, but its still a little alien to me. what is 'sprite_get_height'?

Now what about if I JUST want the body sprite face to face my mouse.x and mouse.y ?