...make one exception in a chain of or conditions?

Get help using Construct 2

Post » Fri Jan 24, 2014 3:49 pm

Hi there,

So I have this logic thing i'm trying to work out and for the life of me it's just not behaving as i think it should..

so i have a simple mouse over rule. i'm using a custom icon. when the mouse hovers over various objects it goes from a custom pointer to a custom hand.. this works great.. so it's something like this:


mouse over button 1 - play hand animation

or

mouse over button 2 - play hand animation

or

mouse over button 3 - play hand animation

else

play play normal animation.



https://www.dropbox.com/s/o9fyubnx39vhv1y/capture1.PNG

now the trouble i am having is that i want one of those to not always be a mouse-over condition.. so i setup a simple global variable that when a particular condition is met, to ignore that one.. so i set it up like this:

but what ends up happening depending on where i put things.. either it ignores the other mouse overs, or it ignores the one that has the special variable.. it seems like i should just be able to nest a variable grouped with an item and have it just be another thing in the or condition somehow?

here is another attempt..



https://www.dropbox.com/s/7tynrn3dt0a85t2/capture2.PNG


Thanks!
Caleb
part12studios2014-01-24 15:50:33
B
59
S
9
G
1
Posts: 946
Reputation: 6,561

Post » Fri Jan 24, 2014 4:30 pm

It's pretty simple actually:

Always - Play normal animation

Mouse over button 1 - Play hand animation
etc

Since the "Always" event is before the other ones, it has lower priority, so when you mouse over button 1, it will override the "Always" one
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249


Return to How do I....?

Who is online

Users browsing this forum: jezjones24, Lancifer, Magistross and 22 guests