Couple of animation questions

Get help using Construct 2

Post » Wed Sep 25, 2013 8:49 am

So I am making a menu that pops out from the side of the screen using layers. My question are:

For each button on the menu, is it better to have each of them be their own object with only 2 frames for unclicked/clicked, or have all the buttons on the menu in one object that has all of the clicked/unclicked frames inside it?

I ask because I am using the second method of having them all inside 1 object and it is proving to be a bit difficult for me, but I wan to make the game as optimized as possible.

If you think the second option is the best way to go, then my second question is, how would you handle changing the animation frame of each IID of the buttons? I can'r seem to figure out how to change specific object instances to different frames, they all go to the same frame.
B
5
S
1
Posts: 14
Reputation: 413

Post » Wed Sep 25, 2013 9:16 am

There are so many different ways. First of all it's much better with only one objects with X frames.

Now we need to know do you create the Buttons on runtime or do you just copied them and placed them in the Layout ? If you want to make it dynamic and fast its better to create them during the runtime.

And disable the Animation speed, open image editor, click on the Animation click on the properties bar and set speed to 0. If you dont do this the animation will run every time until the last frame.
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Wed Sep 25, 2013 5:02 pm

In the event sheet you can use the animationframe as a condition.

On object clicked - sprite: compare frame

or if you are using different animations:

On object clicked - sprite: is playing "animationname"
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 56 guests