[Solved] Reset Global Variables + Reset Layout won't work

Get help using Construct 2

Post » Sat May 17, 2014 6:31 pm

Hey guys :).

This is my first post so hello everyone !

I have an issue with my proto :
The objects RobotParticles, MouseParticlesRed and LightsLine seem to uh... act in a weird way once the player dies and the layout is reset (Fall from the 2nd floor or more to die). Is there something I'm missing here ?

Thanks by advance !

Ps: The part that I think is concerned is the one that is not in a group, with the comments.
You do not have the required permissions to view the files attached to this post.
Last edited by Oruzee on Sat May 17, 2014 10:12 pm, edited 1 time in total.
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Sat May 17, 2014 7:49 pm

You don't actually have any global variables, you have instance variable on the robot that need to be reset "On start of layout". Then it works.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat May 17, 2014 8:33 pm

Uhm well the problem isn't really in the resetting of the values, construct seems to not completely recognize the robot once the layout restarts :
The red particles on top of his head vanish and come up only when I jump, same for the red line,
and the FallState instance variable in PixBot seems to uh... Increment forever without resetting to 0 when Pixbot hits the ground.

I think I broke the Matrix.
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Sat May 17, 2014 9:17 pm

Per my suggestion.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat May 17, 2014 10:01 pm

Thanks for that but I'm in r168 and I can't open your file ^^".
Sorry :(

(And of course I have it on Steam so I can't switch between versions easily...)
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Sat May 17, 2014 10:09 pm

168
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat May 17, 2014 10:11 pm

Blessed be thou, O great savior !

Thank you very much (and sorry for being slow to understand) ! :D
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Darth Crusher and 6 guests