SOLVED Making sequence follow the object x,y?

as the title says, i've yet to find a way to make the sequence follow an object when it moves.

the only other solution to this is to manually change it to a sprite when it moves. But i was hoping maybe the origin of the sequence could follow the object maybe?

i searched and looked over the manual but i didn't find any clear answer to this
 

Roldy

Member
Just update the position of the sequence.

Example
GML:
// =======================
// The Objects create event       
        
// Create a sequence
seqElementID = layer_sequence_create(layer, x, y, _someSeqeunceAsset);

// ========================
// The objects End Step event
        
// Each frame set the sequence position equal to object position
layer_sequence_x(seqElementID, x);
layer_sequence_y(seqElementID, y);
 
Just update the position of the sequence.

Example
GML:
// =======================
// The Objects create event     
      
// Create a sequence
seqElementID = layer_sequence_create(layer, x, y, _someSeqeunceAsset);

// ========================
// The objects End Step event
      
// Each frame set the sequence position equal to object position
layer_sequence_x(seqElementID, x);
layer_sequence_y(seqElementID, y);

thanks, it was really that simple, i did try that and failed, so i assumed it only would change the size/angle of the sequence cuz that's what happened.
and when i read over the manual it said it was the size of the sequence.

well i was wrong. Thanks again.
 
Last edited:
Top