Strange issue with events

For questions about using Classic.

Post » Sat Jun 23, 2012 8:53 pm

I am trying to make a door, it has a solid attribute, when you shoot it the solid attribute is removed and the doors opacity is lowered. When you shoot it again it is supposed to add the solid attribute and raise the opacity back to %100.

I have to separate events which are the exact opposite of one another, I can get one at a time to work, but not both.

here is a pic of my event sheet, what am I doing wrong?


PS I am still pretty new to this.
B
4
Posts: 18
Reputation: 336

Post » Sun Jun 24, 2012 2:55 pm

I think that is construct classic maybe?

you could try separating the events.

like this:

- when door collides with sprite while close > set open, then destroy sprite.

- when door collides with sprite while open > set close, then destroy sprite.

- when door is closed > set opacity to 100 and become solid.

- when door is open > set opacity to 20 and stop being solid.

Sometimes the order of the instructions seems to alter the results. You could also try destroying the sprite after opening or closing the door. I know it shouldn't make a difference but it won't hurt =)

Hope you can solve this ^^!
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sun Jun 24, 2012 8:31 pm

The actions of event 5 set it up so that event 6 will always run. Add a "else" condition to event 6 and that should help.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Sun Jun 24, 2012 8:59 pm

The else command did it, thanks alot.
B
4
Posts: 18
Reputation: 336


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests