Pages

Monday, December 07, 2009

Objectives

The next thing to think about is what sort of things will the player be allowed or expected to do. The player will interact with AI controlled instances in a number of ways depending on the mission type.

Initially, I'll focus on shooting things, and being shot at by AI instances. I'm guessing these will fall into four categories:
  • Ground based static position e.g turret
  • Air based static position e.g barrage balloon
  • Ground based dynamic positon e.g trucks and troops
  • Air based dynamic positions e.g aircraft

Tuesday, December 01, 2009

Homing missiles

I've now moved onto homing missiles. Once activated they simply 'home' in onto the mouse pointer. This was created for test purposes, but it might be the case that it stays in the game. I like the idea of a laser guided missile, allowing the player to guide the missile with the mouse pointer. Might be fun, if a little difficult to control.



I set the direction of the missile using the following code. It's crude but it works.

if instance_exists(mouse_pointer)
{
dir = point_direction(x,y,(instance_nearest(x,y,mouse_pointer)).x, (instance_nearest(x,y,mouse_pointer).y)-20)
}