Nyro17
Member
Hello! Its me again!
I would like to know if there is a way to draw all frames from 1 sprite once I click a button.
I have the following structure:
objPlayer containing:
GUI Draw
Create
...
sprEnergySpell
It contains 8 frames and the speed is set to 8.
About the touch button it works, so I wont say something about it...
Main problem:
When I write the following in GUI draw:
It only draw the last frame of all sprites and dissappear so fast without respect the frame speed.
Any idea? :O
Thanks,
Nyro.
I would like to know if there is a way to draw all frames from 1 sprite once I click a button.
I have the following structure:
objPlayer containing:
GUI Draw
Create
...
sprEnergySpell
It contains 8 frames and the speed is set to 8.
About the touch button it works, so I wont say something about it...
Main problem:
When I write the following in GUI draw:
Code:
if(device_mouse_button_checked_released){
draw_sprite(sprEnergySpell,0,objPlayer.x, objPlayer.y);
}
Any idea? :O
Thanks,
Nyro.