Page 1 of 1

sequence combine

Posted: Sat Mar 17, 2018 1:28 pm
by bodomalo
How does the "combine;" attribute work with sequences?

My goal is to have a new rocketman, that will liedown, shot, standup, whenever it "shoots"


This does not work (crash, using frames 300 something and e3 only has 14 frames)
ANy idea how COMBINED works?[/code]

Code: Select all

shoot: rocketman
		Combine:
			e3: e3
				Start: 128
				Length: 2		
			e3: e3
				Start: 192
				Length: 10
			e3: e3
				Start: 176
				Length: 2	
		Facings: 8
		Length: 14

Posted: Mon Mar 19, 2018 2:25 pm
by abcdefg30
Sounds like you rather want to use "Frames:" instead of "Combine:". Iirc combine is used when you need to combine different sprites together in one sequence. You only want to take certain frames from one sprite however as far as I understood. (I have to admit though that I'm not sure how well "Frames:" works together with "Facings:".)

EDIT: Actually, seems like "Combine:" is used for this case as well, indeed. I found https://github.com/OpenRA/OpenRA/blob/3 ... .yaml#L516 in a quick search.

Posted: Mon Mar 19, 2018 5:18 pm
by SirCake
I'm only guessing, but I think you need to specify Facings: 8 on all the Combine entries as well.
Like this the program likely picks frames 128, 129, then 192, 193, etc so the combined length is 14 frames only.
While then you are saying you have 8*14=112 frames available.

Posted: Sat Mar 24, 2018 5:58 pm
by bodomalo
Oh, so I understand the "COMBINE' might be usefull if I want to
add the shadow to a tiberian sun shapefile infantry unit (those shp files seem to have the unit and shadow separated)

Posted: Sun Mar 25, 2018 6:59 am
by MustaphaTR
There is a ShadowStart: value used for TS units/RA2 Buildings. Combine adds frames next to each other, not on top of them. You can't use them for that purpose.

Posted: Sun Mar 25, 2018 8:02 am
by bodomalo
MustaphaTR wrote: There is a ShadowStart: value used for TS units/RA2 Buildings. Combine adds frames next to each other, not on top of them. You can't use them for that purpose.
So the solution is:
run:
start: 8
Facings 8:
Length: 6
Shadowstart: 300



THANKS a lot - that works!