Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Listing] REQUEST: Some enemy AI's (GM 6.1)  (Read 2044 times)

0 Members and 1 Guest are viewing this topic.

Solarrain4

The Blurred Line In-Between
[Request / Listing] REQUEST: Some enemy AI's (GM...
« on: April 27, 2006, 01:00:35 am »
  • ...Is it recording?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 559
Title. Here's a few of the things I need. The others, I'll try to do myself before I bring it up.

Deku Baba (the one that lunges out at you. The one that shoots up sounds like it would be kind of easy)
Skulltula
Leever

Any help would be greatly appreciated. ;D
« Last Edit: February 08, 2012, 10:39:45 am by Niek »
Logged
06/29/2014 - forever and always <3
Re: REQUEST: Some enemy AI's (GM 6.1)
« Reply #1 on: April 29, 2006, 03:12:18 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1141
For the skulltula:
Code: [Select]
//In skulltula's step event
If (sqrt(sqr(x-link.x)+sqr(y-link.y))</*distance necessary between link and the skulltula for it going down*/)
{
  if (status=="up")
  {
    //Goes down
    status = "down";
    sprite_index = skulltula_looking_down;
    time_counter = 0;
  }
}
else
{
  if (status=="down")
  {
    //Goes up
    status = "up";
    time_counter = 0;
  }
}
if (status == "down")
{
  time_counter = (time_counter + 1) mod /*time necessary for the skulltula to turn*/;
  if (time_counter == 0)
  {
    if (sprite_index==skulltula_looking_down)
    {
       sprite_index = skulltula_looking_up;
    }
    else
    {
       sprite_index = skulltula_looking_down;
    }
  }
}

EDIT: There was a small error in the first if statement, I've already corrected it.
« Last Edit: April 30, 2006, 06:05:12 pm by sjegtp »
Logged

Solarrain4

The Blurred Line In-Between
Re: REQUEST: Some enemy AI's (GM 6.1)
« Reply #2 on: April 29, 2006, 09:34:34 pm »
  • ...Is it recording?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 559
Thank you ;) Looks like it's tough to figure out.
« Last Edit: April 29, 2006, 09:38:00 pm by Solarrain4 »
Logged
06/29/2014 - forever and always <3
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.246 seconds with 40 queries.