arranging the sprite order in animation

Get help using Construct 2

Post » Thu Sep 26, 2013 12:40 am

Hello!

I'm kinda new to this and I'm making my first construct game.

I'm setting the standing animation, for example, and I find it very weird that the program doesn't have a simple way to list the sprites you want in the order you want.

For example, in the M.U.G.E.N. engine (an old engine created to make fighting games) you import your sprites and then work in the animation editor, where you code things like this:

;----------------------------------
; Standing Animation
2,0, 0,0, 15
2,1, 0,0, 3
2,2, 0,0, 15
2,1, 0,0, 5
2,0, 0,0, 15
2,1, 0,0, 3
2,2, 0,0, 15
2,1, 0,0, 5
;--------------------

The first line read like this:

-2,0 (number of the sprite)
-0,0 (doesn't alter the position of the sprite in X or Y)
-15 (duration of the sprite in ticks)

The soft reads all the lines form up to down and creates the animation this way. once it gets to the bottom it loops.

This is a great way to map the sprites inside the animation and put the sprites in the order you want, with the duration you want and repeat them as you want.

So, I can't find this in construct. It looks like I'm forced to import the frames in the correct order, can't repeat a frame in the middle put at the end, or any other stuff.
Is there an easy way like this to map the sprites in the animation?Borghi2013-09-26 00:41:12
B
5
S
1
Posts: 92
Reputation: 609

Post » Thu Sep 26, 2013 1:26 am

Yes, by setting animation speed to 0 and do the frame changes with events.
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Thu Sep 26, 2013 1:31 am

hmmm sounds a lot more painintheassy that I expected.

this really should improve in the future I think.

what if 2 animations use the same sprite? Do you have to load it 2 times and occupy the double of the space? it's kinda dumb.
Borghi2013-09-26 01:31:56
B
5
S
1
Posts: 92
Reputation: 609

Post » Thu Sep 26, 2013 1:38 am

Please read the manual first. You'll see then, that you are confusing sprite objects, instances and frames.
You can do whatever you like with each instance of a sprite. The instances share the same frame sources, but the presentation of frames (e.g. their order, how long they are shown, etc.) is totally independant from other instances.
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Thu Sep 26, 2013 1:58 am

If you double click on a sprite (or right click, "Edit animations") you open the image editor.

With in the image editor there is an Animation frames window.

Right click on the Animation frames window and choose "Import frames"

(delete the first frame since you probably won't need it)

After the frames are imported you can move them (by dragging them around), duplicate them (right click, "Duplicate") and set the duration for each individual frame from the Properties panel/Frame properties/Frame speed. The default speed is 1 which means that if the whole animation speed is 12 (in the Animations window, default animation), construct will play 12 frames in a second. If you set the frame duration (speed) to 2 on all frames, construct will play 6 frames in 1 second. You can mix and match the frame speeds to your liking, duplicate them and move them around and play back the animations looped and/or ping-pong looped...

Read the manual for more information. eli0s2013-09-26 02:01:12
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Thu Sep 26, 2013 3:22 am

Oh, i see.

So, what I was failing to understand is that the loaded frames don't take space in the game since they are being taken from the disk. then I guess once you compile the final game each one is loaded only once.

since I was making one of the begginners tutorials I somehow didn't think about the manual.

I got how the order of frames work now, too.

thanks for the advice!
B
5
S
1
Posts: 92
Reputation: 609


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 43 guests