animation folder

Get help using Construct 2

Post » Sat Jun 09, 2012 11:07 pm

how can i use the folder and sub-animations ???

for example i have a sprite with 2 folders :
-language1 (will be english)
-language2 (will be arabic)
each one of these language folder has some animation for example
ManuPage
Win
Lose
GameOver
each animation has about 1-40 frames (for example).

and on in the home page i have 2 flags (1sprite) : usa flag, ksa flag with a variable 1,2 so if i clicked the first one how can i let him use all sprites on language1?? what should i do?? and same on number2zsangerous2012-06-10 11:21:01
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sun Jun 10, 2012 4:45 pm

any idea??
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Mon Jun 11, 2012 4:48 pm

the folders are just organizational they have no effect on how to use the animation. So make sure each animation has a proper identifying name like eng_ManuPage eng_Win ... ara_ManuPage ara_Win etc

Then based on which flag is clicked set the required objects to the proper language animations
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Mon Jun 11, 2012 7:10 pm

idd may add that the set animation is a string, so you can add a variable to it

global var: languagselect = "eng"

set animation to languagselect & "_manupage"

so this way you only need the one action to set the correct animation name , depending on the global var, it will select the right animation

ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Tue Jun 12, 2012 5:44 am

@vtrix , aridale , thanks for your help ^^ i think some names and some variables will fix all that ^^
B
48
S
15
G
6
Posts: 795
Reputation: 12,035


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests