Cannot choose specific instances

Bugs will be moved here once resolved.

Post » Sun Jul 06, 2014 12:58 pm

Hello!
The actions is not only apply to the instances that met the conditions.
I have problems with creating platformer game, my instances of enemies is react to events all together, but not only those who have conditions for that.

Capx: https://www.dropbox.com/s/c8wo1f7nf7duh3z/turret.capx

Here is capx were I want to make turrets green when mouse is located to the right of them and blue for the left location, but in reality they react as one single object. The middle turret is the most problematic.

Drag mouse from right to left and you will see it.

The middle turret is still green. But i want to change it's color.

For one instance on layout it is works perfectly, and not for many.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 8.1

Construct 2 Version ID
173 (64 bit)
B
9
S
1
Posts: 16
Reputation: 607

Post » Sun Jul 06, 2014 1:29 pm

See attached capx. You're using an Else, so if the first condition is met (i.e. one or more sprites within 90deg of 0) then the second event is not triggered (no change of animation frame).

Edit: minor wording, and modified a log statement in the capx
You do not have the required permissions to view the files attached to this post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Jul 06, 2014 1:50 pm

codah wrote:See attached capx. You're using an Else, so if the first condition is met (i.e. one or more sprites within 90deg of 0) then the second event is not triggered (no change of animation frame).

Edit: minor wording, and modified a log statement in the capx

Thank you very much! Is my problem was because of this description that i found in manual: " Else can only follow normal (non-triggered) events."? But i still don't understand what "non-triggered events" means quite well.
B
9
S
1
Posts: 16
Reputation: 607

Post » Sun Jul 06, 2014 2:02 pm

I shouldn't have used the word triggered; 'evaluated' might've been a better word. A non-triggered event is like an evaluation of an expression rather than, say, a mouse click 'triggering' an event.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Jul 06, 2014 3:50 pm

codah wrote:I shouldn't have used the word triggered; 'evaluated' might've been a better word. A non-triggered event is like an evaluation of an expression rather than, say, a mouse click 'triggering' an event.

And again, thank you! It was very informative.
B
9
S
1
Posts: 16
Reputation: 607

Post » Mon Jul 07, 2014 3:06 pm

Closing as not a bug.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest