Thank You! It works, but it has bad frame rate problems and I am not sure how to fix the frame problem. I don't know how to code something that would help the frame rate.
Here is the code
obj_fire
//North
if (place_meeting(x,y - 32, obj_grass)) and (global.windDirection = 1) and (fireTime > 10) and (haveCheckedNorth = 0)
{
instance_create_layer(x,y - 32,"Fire",obj_fire);
fireTime = 0;
haveCheckedNorth = 1;
}
//South
if (place_meeting(x,y + 32, obj_grass)) and (global.windDirection = 3) and (fireTime > 10) and (haveCheckedSouth = 0)
{
instance_create_layer(x,y + 32,"Fire",obj_fire);
fireTime = 0;
haveCheckedSouth = 1;
}
//East
if (place_meeting(x + 32,y, obj_grass)) and (global.windDirection = 2) and (fireTime > 10) and (haveCheckedEast = 0)
{
instance_create_layer(x + 32,y,"Fire",obj_fire);
fireTime = 0;
haveCheckedEast = 1;
}
//West
if (place_meeting(x - 32,y, obj_grass)) and (global.windDirection = 4) and (fireTime > 10) and (haveCheckedWest = 0)
{
instance_create_layer(x - 32,y,"Fire",obj_fire);
fireTime = 0;
haveCheckedWest = 1;
}
fireTime = fireTime + 1;
Thank You!