GameMaker Display all the sprite frames before change

Sawyer

Member
Hello everyone,

My player can teleport if i press on the mouse's right button.

I use :
Code:
if mouse_check_button_pressed(mb_right)
{
sprite_index = spr_Tp
x= x + target_xx - 16
y= y + target_yy - 16
}}
My problem is that the sprite spr_Tp only display 1 frame when i teleport.
I want that the sprite display all his frames.
Any ideas?
 
Last edited:
C

CedSharp

Guest
We are missing a lot of information here.

First, do you set another sprite at some other point in your code? What condition do you use for that?
Second, the title says "before change". What do you mean by that ? Can you show us the code?

We'll need more information in order to answer your question.
 
Top