EDIT: Didn't work. It wouldn't go left, the animation didn't go, and intstead of moving the object, it created a bunch of new ones wherever the original went. I'ma go look at the wiki and see what the codes I'm using actually mean...
EDIT2: Ah, I see it, the "instance_create" code creates a new instance, what I need is the code for changing the sprite. Lemme see if I can find that...if (sprite_index == spr_canonleft1)
{
with (instance_create(x,y, obj_canon))
{
direction = 180;
speed = 4;
}
}
if (sprite_index == spr_canon)
{
with (instance_create(x,y, obj_canon))
{
direction = 0;
speed = 4;
}
}
if (sprite_index == spr_canonleft2)
{
with (instance_create(x,y, obj_canon))
{
direction = 180;
speed = 4;
}
}
if (sprite_index == spr_canon2)
{
with (instance_create(x,y, obj_canon))
{
direction = 0;
speed = 4;
}
}