Global Variable

Bugs will be moved here once resolved.

Post » Sun May 19, 2013 3:51 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/47874986/C2Bug/Aula%2037.capx

Steps to reproduce:
1. The Orbit Global Variable is 0;
2. Player have a Plataform and ScroolTo Behaviors and is on Earth by event 1;
3. When Player collision to Sprite ChangePlanet (red color) is set 1 to Orbit Global Variable by event 3;
4. Player go to the Moon by event 2;
5. In the Moon, when Player collision to Sprite ChangePlanet (red color) is set 0 to Orbit Global Variable by event 4;
6. Player return to Earth.

Observed result:
The Player don't change to the Moon.
If I Toggle Disable the Event 4 the player go to the Moon after collision the Sprite ChangePlanet (red color).

Expected result:
The Player can change to the Earth or Moon many times as desired.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 7 Professional - 32 Bits
Construct 2 version:
r130    
B
163
S
24
G
12
Posts: 18
Reputation: 15,280

Post » Sun May 19, 2013 4:34 pm

This isn't a bug; your events 3 and 4 are cancelling out each other because they're effectively happening at the same time.

This works, although it needs some cleaning up.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Sun May 19, 2013 5:46 pm

Tks a lot man...
B
163
S
24
G
12
Posts: 18
Reputation: 15,280

Post » Mon May 20, 2013 4:08 pm

Closing as not a bug.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests