C
Club_song
Guest
Friends, I just started making my first tutorial game. But I decided not to follow the guide, but to create a slightly different project.
I created a game where the paddle goes left and right and hits the ball. The paddle is an animal. And the ball is an tomato. When the animal beats it off, he must close his eyes for a second. I created 2 animations - an animal with open eyes and closed ones.
But I couldn't do it. The animal closes its eyes and does not open it again. How can make eyes open?
This is what the object looks like. And this is the code I used:
Please, help me figure it out. For me, animations and code are the most difficult things in GM 1.4 right now.
Thanks for attention.
I created a game where the paddle goes left and right and hits the ball. The paddle is an animal. And the ball is an tomato. When the animal beats it off, he must close his eyes for a second. I created 2 animations - an animal with open eyes and closed ones.
But I couldn't do it. The animal closes its eyes and does not open it again. How can make eyes open?
This is what the object looks like. And this is the code I used:
GML:
sprite_index = obj_norka1;
image_speed=0;
If image_index=1
{
image_index =0;
}
Thanks for attention.