How do I memorized variable while changing layout ?

Get help using Construct 2

Post » Thu Mar 13, 2014 10:03 am

Hi !!

I'm a begginer in construct 2 I've already make some progresse, but i have a question, how do I memorized a variable wile changing layout ? I want to do a Metroidvania game with the system of fight of a Jrpg.

Exemple, When Hero walk on Sprite sword => set variable.sword to 1
If sword = 1 then spawn on point1 hero sprite Sword

With this my hero take the sword but when I change room he no longer have the sword. And if i do at the creation of Layout Put variable.sword to 1
If sword = 1 then spawn on point1 hero sprite Sword

He doesn't have the sword in his hand.

Thanks a lot !!!
B
4
S
1
Posts: 6
Reputation: 364

Post » Thu Mar 13, 2014 10:11 am

Set the variable as global variable.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Thu Mar 13, 2014 10:18 am

Oh shame on me...

It didn't work because, i used the wrong action, (Spawn to position instead of set position)

Thanks a lot !!
B
4
S
1
Posts: 6
Reputation: 364


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Phacanu, richcoz81, Txchaser, Yahoo [Bot] and 29 guests