Skip to content

Instantly share code, notes, and snippets.

@teukstrid
Created May 24, 2018 07:41
Show Gist options
  • Save teukstrid/9e48a06b4361c2fa4a7f92249f436ae9 to your computer and use it in GitHub Desktop.
Save teukstrid/9e48a06b4361c2fa4a7f92249f436ae9 to your computer and use it in GitHub Desktop.
hornet_create
event_inherited();
initialize_movement_entity(.25, .5, o_solid);
enum hornet {
hit,
move,
attack
}
starting_state_ = hornet.move;
state_ = starting_state_;
alarm[1] = global.one_second * random_range(0, 1);
alarm[2] = global.one_second * random_range(6, 8);
image_index = 0;
image_xscale = choose(-1, 1);
range_ = 128;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment