floor switch logic 2

Get help using Construct 2

Post » Tue May 14, 2013 11:33 am

switchpic

image

I've tried various ways of doing this but cant get it to work.

I want either the user or statue to overlap the button and stay active whilst on it, but if neither of them is on the button then it becomes inactive.

This works if I used it with link only but as soon as I add the or logic for the statue if fails to work

the statue has a physics behaviour but link and switch do not

any help would be appreciatedLI0NHART2013-05-14 11:39:46
B
14
S
4
G
3
Posts: 77
Reputation: 4,011

Post » Tue May 14, 2013 12:12 pm

Your problem is easy I hope :D

If link is on the button it set the animation frame to 1, this is right

BUT

Also your statue IS NOT on the button which means it sets the animation frame to 0

So your only problem is the 2 events get triggered and not only the one you want.

Just delete the second "or"

This is how it should looks like:

+ link is NOT overlaping button
+ statue is NOT overlaping button



You could also try:

+ props is overlaping button
or
+ zelda is overlaping button
+ trigger once
--> button set animation frame 1

+ props is NOT overlaping button
+ zelda is NOT overlaping button
+ trigger once
--> button set animation frame 0



This would work with more than 1 button, and you dont need pick UID. (I think)



Darklinki2013-05-14 12:28:00
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Tue May 14, 2013 12:52 pm

I think ive tried your methods correctly to no avail.
here is my capx if you could get it to work i'd much appreciate it

https://www.dropbox.com/s/ie3j1u4q12weny2/link.capx
B
14
S
4
G
3
Posts: 77
Reputation: 4,011

Post » Tue May 14, 2013 1:39 pm

Got an Error: "Failed to open project .... objet texture file 'grass.png'"
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Tue May 14, 2013 2:02 pm

sorry about that this link should work
https://www.dropbox.com/s/ie3j1u4q12weny2/link.capx
B
14
S
4
G
3
Posts: 77
Reputation: 4,011


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 17 guests